try groups

On Mon, Mar 3, 2008 at 11:07 PM, Baz <[EMAIL PROTECTED]> wrote:
>
>  Stumbled onto this, hoping someone could guide me as to what is the
>  expected behavior before I file a ticket in trac:
>
>  Trying to add a select drop down list:
>
>  Let's assume, we have a simple model with a belongs_to Group, he we
>  have a group_id.
>  //controller:
>  $group = $this->MyModel->find('list')
>  $this->set(compact('group'));
>
>  //veiw:
>  // This works fine:
>  $form->input('group_id')
>
>  // This does not populate the data:
>  $form->select('group_id');
>
>  >
>



-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to