Commit 81ce1497 by Alexander Makarov

Merge pull request #2686 from sanchezby/master

Corrected sample in data-grid.md
parents cd7e51df 85df7814
......@@ -50,12 +50,10 @@ echo GridView::widget([
'username',
// More complex one.
[
'class' => 'DataColumn', // can be omitted, default
'name' => 'column1',
'class' => 'yii\grid\DataColumn', // can be omitted, default
'value' => function ($data) {
return $data->name;
},
'type'=>'raw',
],
],
]);
......
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