Skip to content

Instantly share code, notes, and snippets.

@mahana123
mahana123 / my CGridView
Created April 18, 2014 13:23
how to pass the parameter to actionID which can only be access by argument not by $_GET['parameter_name'] ?
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'columns'=>array(
'description',
array(
'name'=>'post_time',
'value'=>'date("M j, Y", strtotime($data->post_time))',
),
array( // display a column with "view", "update" and "delete" buttons
'class'=>'CButtonColumn',