protected function generateCheckbox($options, $currentValue = null)
    {
        $hidden = sprintf('<input type="hidden" name="%s" value="0">', $options['name']);
        $chk = sprintf('<input %s %s>', $this->arrayToHtmlAttributes($options), $options['value'] == $currentValue ? ' checked="checked"' : '');
        return $hidden . $chk;
    }
protected function generateCheckbox($options, $currentValue = null)
    {
        $hidden = sprintf('<input type="hidden" name="%s" value="0">', $options['name']);
        $chk = sprintf('<input %s %s>', $this->arrayToHtmlAttributes($options), $options['value'] == $currentValue ? ' checked="checked"' : '');
        return $hidden . $chk;
    }
protected function generateCheckbox ( $ options , $ currentValue = null ) { $ hidden = sprintf ( '<input type="hidden" name="%s" value="0">' , $ options [ 'name' ] ) ; $ chk = sprintf ( '<input %s %s>' , $ this -> arrayToHtmlAttributes ( $ options ) , $ options [ 'value' ] == $ currentValue ? ' checked="checked"' : '' ) ; return $ hidden . $ chk ; }
Generates a checkbox field
@param  array $options
@param  string $currentValue (Optional)
@return string
Generates a checkbox field