Is there any way to define wich options in Zend_Form_Element_MultiSelect would be selected by default??
+1
A:
$element = new Zend_Form_Element_MultiCheckbox('foo', array(
'multiOptions' => array(
'foo' => 'Foo Option',
'bar' => 'Bar Option',
'baz' => 'Baz Option',
'bat' => 'Bat Option',
);
));
$element->setValue(array('bar', 'bat'));
Keyne
2010-08-15 16:01:13
Thanks... I'm so ashmed(
Ris90
2010-08-15 20:03:54