Re: $form-select SELECTED how to ? ? ?

2009-10-01 Thread DatacenterHellas
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

$form-select SELECTED how to ? ? ?

2009-09-03 Thread DatacenterHellas
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

Re: $form-select SELECTED how to ? ? ?

2009-09-03 Thread Martin Westin
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