Dont know how to do it…
I get 500 Trying to get property of non-object
$this->widget('zii.widgets.grid.CGridView',
array(
'id'=>'tableView',
'dataProvider' => $dataProvider,
'columns' => array(
array(
'name' => 'id',
),
array(
'header' => 'test',
'class' => 'CButtonColumn',
),
),
));
if i remove the CButtonColumn all works fine
The key to the answer is CArrayDataProvider