You can use an afterFind to concat the fields together in you model,
you can use myGenerateList for some funky options (though there are
plenty who look upon that method w/ scorn, if would seem), there are
plenty of possibilities.
Search around and you'll discover my troubles and (some) solutions w/
generateList. ; )
On Sep 27, 6:37 am, roryy <[EMAIL PROTECTED]> wrote:
> Hi I have a question about my generatelist. I want it to display 2
> fields.
>
> This is the current generatelist:
> $this->set('people', $this->Project->Person->generateList(null,
> 'surname asc', null, '{n}.Person.id', '{n}.Person.surname'));
>
> But I want it to show Person.firstname too. Can someone help me
> please? :)
>
> Greetings.
> Rory
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---