You should probably set $this->displayField variable in your model
(ie.. var $displayField = 'user_name';). I've written a bit about it
at http://php.abdullahsolutions.com/2008/02/what-will-you-find.html.

Hope that helps.

On 6/3/08, Mee <[EMAIL PROTECTED]> wrote:
>
> Hello everyone!
>
>    I have a model with a foreign key, that links it to another model.
> Can you tell me how to make listbox with the field from another model,
> instead of it's id in current model?
>
> (i.e. user_name instead of user_id)
>
> thanks in advance,
> mee
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to