helpers\BaseHtml activeBooleanInput()

activeBooleanInput() protected static method (available since version 2.0.9)

Generates a boolean input This method is mainly called by activeCheckbox() and activeRadio().

protected static string activeBooleanInput ( $type, $model, $attribute, $options = [] )
$type string

The input type. This can be either radio or checkbox.

$model yii\base\Model

The model object

$attribute string

The attribute name or expression. See getAttributeName() for the format about attribute expression.

$options array

The tag options in terms of name-value pairs. See booleanInput() for details about accepted attributes.

return string

The generated input element

doc_Yii
2016-10-30 17:04:49
Comments
Leave a Comment

Please login to continue.