If you create your form fields correctly, the form helper will sort all of 
this for you 

echo $this->Form->select(
    'Model.field',
    $options,
    array('multiple' => true)
);

Source: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html

I would focus on trying to get the conventions working rather forcing the 
selected options.  If you have your data array correct then the above will 
output a multiselect form field with the right options selected.

HTH, Paul.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to