yii\helpers\BaseHtml::activeRadio PHP Метод

activeRadio() публичный статический Метод

This method will generate the "checked" tag attribute according to the model attribute value.
public static activeRadio ( Model $model, string $attribute, array $options = [] ) : string
$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.
Результат string the generated radio button tag
    public static function activeRadio($model, $attribute, $options = [])
    {
        return static::activeBooleanInput('radio', $model, $attribute, $options);
    }