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 |
| $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 |
Please login to continue.