From 85df781406617a3b5c4cc75bbbca8746a1b114c9 Mon Sep 17 00:00:00 2001 From: sanchezby Date: Mon, 10 Mar 2014 09:22:23 +0300 Subject: [PATCH] Update data-grid.md DataColumn doesn't have "name" & "type" fields, and should have fully qualified name if not omitted --- docs/guide/data-grid.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/guide/data-grid.md b/docs/guide/data-grid.md index 1dcd0179a4..4165693c04 100644 --- a/docs/guide/data-grid.md +++ b/docs/guide/data-grid.md @@ -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', ], ], ]);