find list - group results using assoc field

2009-10-29 Thread Sergio Silva
Hi! I have this assoc: Group belongsTo Country Im trying to get this array(to generate a select with form helper): Array( [Country.name] => Array ( [Group.id] => [Group.name] ... ) ... ) Example: Array ( [Spain] => Array ( [1] =

Re: Problems cakephp 1.2.5

2009-10-28 Thread Sergio Silva
r::$error = false > SessionHelper::$_userAgent = "c82e7b6a933757f629da37bc1114e73f" > SessionHelper::$path = "/" > SessionHelper::$lastError = NULL > SessionHelper::$security = NULL > SessionHelper::$time = 1256747395 > SessionHelper::$sessionTime = false > Se

Re: Problems cakephp 1.2.5

2009-10-28 Thread Sergio Silva
> extract() [function.extract]: First argument should be an array > > > On Oct 28, 8:56 am, Sergio Silva wrote: >> debug($data['User']) ? >> >> 2009/10/28 Simon : >> >> >> >> >> >> > extract() [function.extract]: Firs

Re: Problems cakephp 1.2.5

2009-10-28 Thread Sergio Silva
debug($data['User']) ? 2009/10/28 Simon : > > extract() [function.extract]: First argument should be an array > > it used to work with cakephp 1.2.0.7962 Final  any idea > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: What's going on with www.cakephp.org?

2009-10-28 Thread Sergio Silva
cool ; ) 2009/10/28 Aurimas : > > oh sorry, fixed > > On Oct 28, 1:50 pm, Sergio Silva wrote: >> @Aurimas: 403 Forbidden >> >> 2009/10/28 Aurimas : >> >> >> >> > here is zombie language translator used by cakephp ;) >> >http:/

Re: What's going on with www.cakephp.org?

2009-10-28 Thread Sergio Silva
@Aurimas: 403 Forbidden 2009/10/28 Aurimas : > > here is zombie language translator used by cakephp ;) > http://lickus.lt/zomb.php > > On Oct 28, 12:27 pm, "euromark (munich)" > wrote: >> yeah :) >> i like the "BRAAIIINS" stuff^^ >> >> On 28 Okt., 10:59, Eugene Golovan wrote: >> >> > Helloween?

Re: HABTM and extra field

2009-10-28 Thread Sergio Silva
> I have many Package > And I have many cost for each Package of Product > > I can't write like this: > Product HABTM Package > Package hasOne Price (with 'cost' field) > because different Package have different Price.cost > > On Oct 28, 12:55 am, Sergio Silva

Re: HABTM and extra field

2009-10-27 Thread Sergio Silva
I recommend you this reading: http://book.cakephp.org/view/85/Saving-Related-Model-Data-HABTM When it says "What to do when HABTM becomes complicated?" Good luck 2009/10/27 kicaj : > > I have relations: > > Products HABTM Package > > Table 'packages_products' has fields: id, package_id, product

Re: Strange belongsTo problem

2009-10-27 Thread Sergio Silva
Are you reciving my mails? sersilva said: You can try changing the alias name of the relationship. For example: == //In DisplayArea Model var $belongsTo = array( 'PageRelationship' => array( //Instead of just 'Page'

Re: Strange belongsTo problem

2009-10-27 Thread Sergio Silva
You can try changing the alias name of the relationship. For example: == //In DisplayArea Model var $belongsTo = array( 'PageRelationship' => array( //Instead of just 'Page' 'className' => 'Page,