Merge pull request #2686 from sanchezby/master

Corrected sample in data-grid.md
This commit is contained in:
Alexander Makarov
2014-03-10 13:21:11 +03:00

View File

@@ -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',
],
],
]);