<?php
class Application_Form_Example5 extends Twitter_Bootstrap3_Form_Vertical
{
public function init()
{
$this->addElement('checkbox', 'checkbox', array(
'label' => 'One checkbox',
'checkedValue' => 'checked Value',
'uncheckedValue' => 'unchecked Value',
));
$this->addElement('multiCheckbox', 'multiCheckbox', array(
'multiOptions' => array(
'option1' => 'Option one is this and that — be sure to include why it\'s great',
'option2' => 'Option two is disabled',
),
'disable' => array('option2'),
'escape' => false,
));
$this->addElement('radio', 'radio', array(
'multiOptions' => array(
'option1' => 'Option one is this and that — be sure to include why it\'s great',
'option2' => 'Option two can be something else and selecting it will deselect option one',
'option3' => 'Option three is disabled',
),
'value' => 'option1',
'disable' => array('option3'),
'escape' => false,
));
$this->addElement('multiCheckbox', 'multiCheckbox2', array(
'multiOptions' => array(
'1' => '1',
'2' => '2',
'3' => '3',
),
'inline' => true,
));
$this->addElement('radio', 'radio2', array(
'multiOptions' => array(
'1' => '1',
'2' => '2',
'3' => '3',
),
'inline' => true,
));
}
}