'pjax' => true,
'dataProvider' => $objDataProvider,
'filterModel' => $objSearchModel ,
'响应'=> true,
'悬停'=> true,
'压缩'=> true,
/ /'floatHeader'=> false,
'列' => [
[
'属性' => 'id',
#(这里让他不包含id99999)
'标签' => '编号',
'hAlign'=> GridView::ALIGN_CENTER,
],
[
'attribute' => 'agent_id',
'label' => '代理编号',
'hAlign'=> ],
[
'属性' => '代理',
'标签' => '昵称',
'值' => function($objModel) {
return $objModel->agent->screen_name;
},
'width'=>'150px' ,
'hAlign'=> GridView::ALIGN_CENTER,
],
/*
Summer2018-07-20 15:01:29
$newarray = $columns;
foreach($columns as $key => $vo){
if($vo['attribute']==99999){
unset($newarray [$key]);
}
}
print_r($newarray);//这个就是去除了99999的新数组