yii 实现字段排序

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

1
2
3
4
5
6
7
8
9
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",
),
查看评论