Ops sorry guys... i searched the web and I find myself the answer...

just put in my category model the line
    var $displayField = "title";
and so it displays the title in the add view.



mig_akira wrote:
> 
> Using associated models (categories hasMany members) I wrote in my
> membersController I wrote: 
> 
> $this->set('categories $this->Member->Category->find('list'));
> 
> and in the add view, i just wrote:
> 
>   echo $form->input('category_id');
> 
> Works beautifully, except that it only shows numbers (the ID of the
> category) in the selection box. It would be nice if could show the names
> of the groups instead. How can I do this simple modification? 
> 
> Thanks in advance!
> 

-- 
View this message in context: 
http://www.nabble.com/%24form-%3Einput%28%27category_id%27%29-shows-only-category-IDs-to-select---can-I-make-it-more-user-friendly%2C-showing-the-name-of-the-category--tp25288173p25288264.html
Sent from the CakePHP mailing list archive at Nabble.com.


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