I have this piece of code, in my view, and i have some problem retrieving the primarykey as a paramter.
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'projecten-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'id',
'userid',
'project_code',
'name',
'description',
'visible',
array(
'class'=>'CButtonColumn',
'updateButtonOptions'=>array('title'=>'',
'ajax'=>array(
'update'=>'dataform',
'url'=>Yii::app()->createUrl("update",array("id"=>$data->id)), // here $data->id is null
'dataType'=>'html',
'type'=>'POST',
),
),
'updateButtonUrl'=>'$data->id', // here the id is correct
),
),
)); ?>
anybody know why is this happening? or i have to use an other approach to retrieve the primarykey?
thanx.

Help















