Hi guys,
if i have a MultiCheckbox like this:

     $multiCheckbox = new Element\MultiCheckbox('multi-checkbox');
     $multiCheckbox->setLabel('What do you like ?');
     $multiCheckbox->setValueOptions(array(
             array(
                     '0' => 'Apple',
                     '1' => 'Orange',
                     '2' => 'Lemon'
             )
     ));
how to set some of the checkboxes to be checked by default?

And is there a way to add more options? mb smt like this:
 $multiCheckbox->addOption(array(
             array(
                     '3' => 'Banana'
             )
     ));





--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/MultiCheckbox-tp4659051.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to