Created
December 22, 2011 14:36
-
-
Save kaiohken1982/1510500 to your computer and use it in GitHub Desktop.
Zend Form Element Multicheckboxes unordered list tag ul
This file contains 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 | |
class My_Form_Template extends My_Form | |
{ | |
public function init() | |
{ | |
parent::init(); | |
$this->addElements(array( | |
$this->createElement(self::TYPE_MULTICHECKBOX, 'checks', array( | |
'label' => 'Unordered Listed Checkboxes', | |
'title' => 'myboxes', | |
'validators' => array(), | |
'required' => true, | |
'separator' => '</li><li>', | |
'decorators' => array( | |
'viewHelper', | |
'Errors', | |
array(array('uno' => 'HtmlTag'), array('tag' => 'li')), | |
array(array('due' => 'HtmlTag'), array('tag' => 'ul','class' => 'check')), | |
), | |
'multioptions' => array( | |
'test2', 'prova2' | |
), | |
)), | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment