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 the attribute selected="selected" to one of the
options that the above code generates ? ? ?

Kind regards
Merianos Nikos
--~--~---------~--~----~------------~-------~--~----~
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