나는 그것은Yii에서 bootstrap.widgets.TbGridView의 검색 상자를 하나만 숨기는 방법은 무엇입니까?
|name | age | sex | birthday |
|----------------------------|
|( )|( )|( )|( )|
|----------------------------|
|Lo |1 |f |24/05 |
같다 및 (가) 검색 상자, 그래서 지금은 그 모습 있도록 시대의 검색 상자를 숨기고 싶어 의미, YII에서 bootstrap.widgets.TbGridView에 의해 네 개의 열이있는의 GridView를 생성 이 :
|name | age | sex | birthday |
|----------------------------|
|( )| |( )|( )|
|----------------------------|
|Lo |1 |f |24/05 |
어떤 사람이 Yii와 함께 할 수 있을까요?
$this->widget('bootstrap.widgets.TbGridView', array(
'type' => 'condensed',
'id' => 'provider-grid',
'dataProvider' => $model->search(),
'filter' => $model,
'columns' => array(
'name',
'email',
array('name' => 'created_at', 'filter' => false), // solved by this
array('name' => 'updated_at', 'filter' => false), // solved by this
array(
'class' => 'bootstrap.widgets.TbButtonColumn',
'htmlOptions' => array(
//'nowrap' => 'nowrap'
),
'template' => '{login} {view} {update} {delete}', // https://github.com/yiisoft/yii/blob/1.1.13/framework/zii/widgets/grid/CButtonColumn.php#L46
'buttons' => array(
'login' => array(
'label' => Yii::t('bus', 'Login to Administrator Site'),
'options' => array(
'title' => Yii::t('bus', 'Login to Administrator Site'),
'target' => '_blank'
),
'url' => 'Yii::app()->createUrl(
"/administrator/default/index",
array(
"provider_id" => $data->id
)
)',
'icon' => 'share'
),
)
),
),
));
위젯 코드를 공유 할 수 있습니까? bootstrap.widgets.TbGridView 위젯을 어떻게 호출합니까? – Arif
감사합니다. 그러나 이미 해결했습니다. 방금. – MichaelLuthor