How to use Zend Framework's formCheckbox View Helper
The Web Dev Zone is brought to you in partnership with Mendix. Discover how IT departments looking for ways to keep up with demand for business apps has caused a new breed of developers to surface - the Rapid Application Developer.
<?php echo $this->formCheckbox('data[enabled]', 1, null, array(1, 0)); ?>OR
<?php echo $this->formCheckbox('data[enabled]', 1, !empty($this->data['enabled']) ? array('checked' => 1) : null); ?>