For most purposes, generateList seems the way to go, but I want to
write the select directly in the view with $form->select() .
On Jul 2, 12:42 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> This is from the Bakery code.
>
> $this->set('parents', $this->Category->generateList(null, null , null,
> null, null,'{n}.ParentCat.name'));
>
> The last param is the what you want to group on and will have that
> label.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---