'pjax' => true,
'dataProvider' => $objDataProvider,
'filterModel' => $objSearchModel,
'responsive'=> true,
'hover'=> true,
'confidence'=> //'floatHeader'=>
[
'attribute' => ; 'id', 'label' => '编号',
],
[
'attribute' =>
'label' => '代理编号',
'GridView::ALIGN_CENTER,
] ,
[
'attribute' => 'agent',
'label' => '昵称',
'value' => function($objModel) {
return $objModel->agent->screen_name;
},
'width'=>'150px' ,
'hAlign'=> GridView::ALIGN_CENTER,
],
/*
$newarray = $columns;
foreach($columns as $key => $vo){
if($vo['attribute']==99999){
unset($newarray [$key]);
}
}
print_r($newarray);//这个就是去除了99999的新数组
在搜索数据库的时候就排除,这样比较好处理。模版的话,