-
-
Save OrlandoST/d10d187f2096ee3d442fef91f0fab000 to your computer and use it in GitHub Desktop.
Zend_Form_Element_MultiCheckbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fooTable = new Application_Model_Useroptions; | |
$options = $fooTable->getUserOptions(); | |
$checkboxes = new Zend_Form_Element_MultiCheckbox('checkboxes'); | |
$checkboxes->setLabel('Options'); | |
$checkboxes->setRegisterInArrayValidator(false); | |
foreach ($options as $opt) | |
$checkboxes->addMultiOption($opt->id_option, $opt->title); | |
$checkboxes->setRequired(true); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment