<?php $model->test=($model->test)?:1?>
= $form->field($model, 'test',[
'options'=>['class' => 'form-group form-md-radios'],
'template' => '{label}
{input}
{hint}{error}',
])->radioList([1=>Yii::t('common','has'),0=>Yii::t('common','not')],
[
'item' => function($index, $label, $name, $checked, $value) {
$checked=$checked?"checked":"";
$return = '
';
';
$return .= '';
$return .= '
' . ucwords($label) . '';
$return .= '
return $return;
}
]) ?>