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--tp25288173p25288173.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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment