On Feb 7, 2:06 pm, Josoroma <[EMAIL PROTECTED]> wrote:
> Im trying to generate a select list, but before the value Citiy.name i
> need to add Country.name like:
>
> Costa Rica - Heredia
> EEUU - New York
>
> $cities = $this->City->find('all', array('fields' => array('City.id',
> 'City.name', 'Country.name'), 'order'=>'City.country_id ASC'));
>
> My question is, how can i preppend the country name to the city name
> using combine?:
look for an example that does the same. e.g.
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/behaviors/tree.php?rev=6383#L301
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---