Can someone please tell me how to fix this error I am getting.
Property "CGridView.0" is not defined.
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'user-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'enablePagination'=>true,
'columns'=>array(
'id',
'name',
'description',
'version'
),
array(
'class'=>'CButtonColumn',
'template'=>'{down}',
'buttons' => array(
'down'=>array(
'label'=>'Display', //Text label of the button.
'click'=>'displaypdf("<?=$data->file->url?>")', //HTML options for the button tag.
'visible'=>'true', //A PHP expression for determining whether the button is visible.
),
),
),
));
It works fine when I remove the array
array(
'class'=>'CButtonColumn',
'template'=>'{down}',
'buttons' => array(
'down'=>array(
'label'=>'Display', //Text label of the button.
'click'=>'displaypdf("<?=$data->file->url?>")', //HTML options for the button tag.
'visible'=>'true', //A PHP expression for determining whether the button is visible.
),
),
),