亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

This question is about how to change the code that excludes id99999 in this ID.
Bluefish
Bluefish 2018-07-20 13:11:40
0
2
1350

<div class="box box-primary">

? ? <div class="box-body">

? ? ? ? <?php Pjax::begin(); echo GridView::widget([

? ? ? ? ? ? 'pjax' => true,

? ? ? ? ? ? 'dataProvider' => $objDataProvider,

? ? ? ? ? ? 'filterModel' => $objSearchModel,

? ? ? ? ? ? 'responsive'=> true,

? ? ? ? ? ? 'hover'=> true,

? ? ? ? ? ? 'condensed'=> true,

? ? ? ? ? ? //'floatHeader'=> false,

? ? ? ? ? ? 'columns' => [

? ? ? ? ? ? ? ? [

? ? ? ? ? ? ? ? ? ? 'attribute' => 'id',?

 (這里讓他不包含id99999)

? ? ? ? ? ? ? ? ? ? 'label' => '編號',

? ? ? ? ? ? ? ? ? ? 'hAlign'=> GridView::ALIGN_CENTER,

? ? ? ? ? ? ? ? ],

? ? ? ? ? ? ? ? [

? ? ? ? ? ? ? ? ? ? 'attribute' => 'agent_id',

? ? ? ? ? ? ? ? ? ? 'label' => '代理編號',

? ? ? ? ? ? ? ? ? ? 'hAlign'=> GridView::ALIGN_CENTER,

? ? ? ? ? ? ? ? ],

? ? ? ? ? ? ? ? [

? ? ? ? ? ? ? ? ? ? 'attribute' => 'agent',

? ? ? ? ? ? ? ? ? ? 'label' => '昵稱',

? ? ? ? ? ? ? ? ? ? 'value' => function($objModel) {

? ? ? ? ? ? ? ? ? ? ? ? return $objModel->agent->screen_name;

? ? ? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? ? ? 'width'=>'150px',

? ? ? ? ? ? ? ? ? ? 'hAlign'=> GridView::ALIGN_CENTER,

? ? ? ? ? ? ? ? ],

? ? ? ? ? ? ? ? /*


Bluefish
Bluefish

reply all(2)
Summer

$newarray = $columns;

foreach($columns as $key => $vo){

if($vo['attribute']==99999){

unset($newarray [$key]);

}

}

print_r($newarray);//This is the new one without 99999 Array

無忌哥哥

Exclude it when searching the database, which is easier to handle. For templates, <?php if($id !=9999)?>

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template