Having a Zend_Form with a Zend_Form_Element_Select on it, i can set ONE option selected with setDefault. But how can i select multiple items on that element, like
$this->setDefaults(array('groups' => 5, 'groups', 7));
But this will only select the option with value 7, option with value 5 is still NOT selected 🙁
($this is zend_form)
a
Zend_Form_Element_Selectelement can only have one value. If you want a multiselect element, you can useZend_Form_Element_Multiselect. To set the defaults, you can use either:or