Commit 77cb067a authored by Brett O'Donnell's avatar Brett O'Donnell

attribute param should be $attribute->name, not $attribute

parent 348f5b07
......@@ -141,7 +141,7 @@ $activeFields = [
'common\models\Foo.isAvailable' => function ($attribute, $generator) {
$data = \yii\helpers\VarDumper::export([0 => 'Nein', 1 => 'Ja']);
return <<<INPUT
\$form->field(\$model, '{$attribute}')->checkbox({$data});
\$form->field(\$model, '{$attribute->name}')->checkbox({$data});
INPUT;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment