Commit 60e72b88 by Alexander Makarov

Merge pull request #5185 from wangchj/master

[skip ci] Add comment to documentation sample code
parents ecd9181a ce838860
......@@ -89,7 +89,7 @@ echo GridView::widget([
[
'class' => 'yii\grid\DataColumn', // can be omitted, default
'value' => function ($data) {
return $data->name;
return $data->name; //$data['name'] for array data, e.g. using SqlDataProvider.
},
],
],
......
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