helpers\BaseHtml activeRadio()

activeRadio() public static method

Generates a radio button tag together with a label for the given model attribute.

This method will generate the "checked" tag attribute according to the model attribute value.

public static string activeRadio ( $model, $attribute, $options = [] )
$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 radio button tag

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

Please login to continue.