Thanks a lot ! ! !
Your answer was realy very helpfull ! ! ! :)
--~--~-~--~~~---~--~~
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
Hello ! ! !
I need your help please :)
I try to load a list into a select option control by doing to
[ Controller ]
function edit()
{
$this-set('list',$this-Modelname-getlist
(null,'id',null,'{n}.id','{n}.name');
}
[ View ]
$form-select('Modelname.fieldname',$list);
now how can I add
Not 100% sure it works when you go directly to html-select but I know
it works for input.
There is the manual way:
$form-input('Modelname.fieldname', array(
'type'='select',
'options'=$list,
'value'=$your_selected_value
));
But the magic of Cake can do for you is where