
视图代码 组件 CGridView
array( 'name'=>'issystem', 'type'=>'raw', 'value'=>array($this, 'showUseriew') ),
回调方法 写在 控制器
/**
* 回调函数 显示对号和错号
*/
public function showUseriew($data, $row, $c) {
$showname = $data->issystem==1?'<font color="red">√</font>':'<font color="blue">×</font>';
return CHtml::link($showname,Yii::app()->createUrl("admin/useriew", array("issystem"=>$data->issystem)));
}