Re: Form helper input select box customization
The options displayed in the select box is usually generated with a
Model::find('list'), which you can adjust to display a specific column
from your model (see: http://book.cakephp.org/view/1017/Retrieving-Your-Data#find-list-1022).
If you are using CakePHP 1.3.x, you can use a virtual field composed
of several columns (see: http://book.cakephp.org/view/1608/Virtual-fields)
as the displayed field.
On May 29, 5:08 am, Jae Choi <hybm...@hotmail.com> wrote:
> Hi all,
>
> Is there a way we can show multiple columns to select when selecting
> belongsto values in edit.ctp view rather than just column named with
> "name"?
>
> To rephrase, basically I want to view different column values under
> form helper input() rather than just one column value under select box
> as it will give additional information under edit.ctp or add.ctp views.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home