The code above is fine for a CGridColumn
. However, it looks like you are using a CButtonColumn
. The code below should suffice.
'preview' => array(
'url' => 'array("classified/preview", "id"=>$data->id)',
'label'=>'test',
'options'=>array("target"=>"_blank"),
),
Also if you require a column in which each cell contains a single link only, a CLinkColumn
would be more suited than a CGridColumn.