<div class="box box-primary">
<div class="box-body">
<?php Pjax::begin(); echo GridView::widget([
'pjax' => true,
'dataProvider' => $objDataProvider,
'filterModel' => $objSearchModel,
'반응형'=> 참,
ㅋㅋㅋ[
'속성' => ; 'id',
(这里让他不包含id99999)
'레이블' => '编号',
'hAlign'=> GridView::ALIGN_CENTER,
],
[
'속성' =>
'레이블' => '代理编号',
'hAlign'=> GridView::ALIGN_CENTER,
],
[
'속성' => '에이전트',
'라벨' => '昵称',
'값' => function($objModel) {
$objModel->agent->screen_name;
},
'너비'=>'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가 제거된 새로운 배열입니다