A long shot in the dark, since I'm not very familiar with yii2, but based on the documentation you can do something like this.
$form->field($model, 'config')->radioList([ '1'=>'Automatic Entry', '2'=>'Manual Entry', ], [ 'item' => function ($index, $label, $name, $checked, $value) { return Html::radio($name, $checked, ['value' => $value]); }, ]);
methode
source share