Thank you.
$cities = $this->City->find('all', array('fields' => array('City.id',
'City.name', 'Country.iso2', 'Country.name'),
'order'=>'City.country_id ASC'));
$citiesCombine = Set::combine($cities, '{n}.City.id', array('%s - %s',
'{n}.Country.iso2', '{n}.City.name'), '{n}.Country.name');
$this->set('cities', $citiesCombine);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---