yii gridview 生成隐藏列
代码如下:
[ 'label' => 'Executive Name', 'attribute' => 'cs.first_name', 'visible' => '0', ],
如果还需要放入条件:
[ 'label' => 'Executive Name', 'attribute' => 'cs.first_name', 'visible' => function(){ if (condition) { return '1'; } else { return '0'; } } ],

浙公网安备 33010602011771号