Didn't show in my inbox. If dup, my apologies.
Gary
On 9/21/07, bujanga <[EMAIL PROTECTED]> wrote:
> Pretty sure this can be done but haven't quite gotten it yet.
>
> $this->User->generateList();
>
> gives array of key=>value such as
>
> [joined] => Array
> (
> [30] => garyroot
> [31] => Tester1
> )
>
> Doing
>
> $this->User->generateList(null, null, null, null, '{n}.User.person_name_id');
>
> results in
> [joined] => Array
> (
> [30] => 8
> [31] => 13
> )
>
> But how does one concatenate those fields in generateList? I've tried
> a few things such as
> $this->User->generateList(null, null, null, null,
>
> '{n}.User.person_name_id'.'{n}.User.username');
> and
> $this->User->generateList(null, null, null, null,
> array('{0}: {1}',
> '{n}.User.person_name_id', '{n}.User.username'));
>
> without result. What is the proper way to get
>
> [joined] => Array
> (
> [30] => 8: garyroot
> [31] => 31: Tester1
> )
>
>
> Baking on Friday again.
>
> Gary Dalton
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---