Skip to content

Instantly share code, notes, and snippets.

@kaiohken1982
Created December 22, 2011 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaiohken1982/1510414 to your computer and use it in GitHub Desktop.
Save kaiohken1982/1510414 to your computer and use it in GitHub Desktop.
Multicheckbox decorator single checkbox
<?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'
),
)),
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment