public
Last active

Multicheckbox decorator single checkbox

  • Download Gist
Multicheckbox.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?php
 
class My_Form_Template extends My_Form
{
public function init()
{
parent::init();
$this->addElements(array(
$this->createElement(self::TYPE_MULTICHECKBOX, 'checks', array(
'label' => 'Riscrivi Password',
'title' => 'repassword',
'validators' => array(),
'required' => true,
'separator' => '</div><div class="check">',
//'decorators' => $this->_formElementDecorators50,
'decorators' => array(
'viewHelper',
array(array('uno' => 'HtmlTag'), array('tag' => 'div','class' => 'check')),
),
'multioptions' => array(
'test2', 'prova2'
),
)),
));
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.