usually that happens automatically
if your username is just "name"
if it is "username"
you need to set $this->displayField = "username"; in the model
this will do the trick if you get your users by $this->User->find
('list')
On 10 Jan., 18:16, lucb <[email protected]> wrote:
> Hi,
>
> I have a simple question, but I can't find the answer in the group or
> website.
>
> Using $form->input('user_id') in a view I get a dropdown list with the
> id's of the users. How can I change that to show a list of the
> username field in the table users?
>
> Best regards,
> Luc
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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