Commit 1cb1e3ab authored by Tobias Munk's avatar Tobias Munk

Merge commit 'd31c9f0e' into feature/ui-panels

parents 4878eaa7 d31c9f0e
......@@ -138,7 +138,7 @@ $activeFields = [
/**
* Generate a checkbox for specific column (model attribute)
*/
'common\models\Foo.isAvailable' => function ($attribute, $generator) {
'models\\\\Foo.isAvailable' => function ($attribute, $generator) {
$data = \yii\helpers\VarDumper::export([0 => 'Nein', 1 => 'Ja']);
return <<<INPUT
\$form->field(\$model, '{$attribute->name}')->checkbox({$data});
......
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