Is there a way to determine which options in Zend_Form_Element_MultiSelect will be selected by default?
$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'));
http://framework.zend.com/manual/en/zend.form.standardElements.html#zend.form.standardElements.multiCheckbox
Source: https://habr.com/ru/post/1759792/More articles:Probabilistic clustering methods for similar text data? - text-processingsetTimeout not being called in android webkit - javascriptWCF Data Border Design - .netSolr How to delete all EXCEPT entries in an array? - htmlSetting the default option for Zend_Form_Element_Select - phpAndroid Tabs & Intents - androidHow can I replace the iPod with my application icon when my application plays audio in the background? - iphoneэкономия поисковых терминов rails thinkingsphinx - ruby-on-railsShould I learn SQL Server 2008 or Oracle 11g - databaseWhy is my keydown jQuery function only working with the first input element - javascriptAll Articles