为了实现yii1里面字段排序,看了些资料还是没有解决,最后不行了,就直接在header添加连接。。。。

array(
''name'' => ''insertDate'',
''header'' => "<a href=''".Yii::app()->createUrl(''data/user/list2'')."''>注册时间</a>",
''value'' => function ($data){
echo date(''Y-m-d H:i:s'',$data->insertDate);
}
//''class'' => ''application.components.columns.GridColumnDateChange'',
//''attribute'' => ''type'',
),





近期评论