Twitter bootstrap 筛选器在引导TB网格视图中不工作

Twitter bootstrap 筛选器在引导TB网格视图中不工作,twitter-bootstrap,yii,yii-extensions,Twitter Bootstrap,Yii,Yii Extensions,我目前正在尝试在Yii中实现引导网格视图。此列表工作正常,但筛选器不工作 我的看法是: <?php $obj=$this->widget('bootstrap.widgets.TbExtendedGridView', array( 'dataProvider'=>$dataProvider, 'type' => 'striped bordered', 'filter' => $model, 'columns'=&

我目前正在尝试在Yii中实现引导网格视图。此列表工作正常,但筛选器不工作

我的看法是:

<?php 

$obj=$this->widget('bootstrap.widgets.TbExtendedGridView', array(
    'dataProvider'=>$dataProvider,
    'type' => 'striped bordered',
    'filter'          => $model,
    'columns'=>array(

                array(            // display 'create_time' using an expression
                            'name'=>'host_name',
             'value'=>'$data->host_name',
                ),
                array(
                            'name'=>'host_serviceid',
                            'value'=>'$data->host_serviceid',
                ),
                                array(
                            'name'=>'status',
                            'value'=>'$data->status',
                ),
                array(
                                    'class'=>'CButtonColumn',
                                    'template'=>'{edit_date}{update}{delete}',
                                    'htmlOptions'=>array('width'=>'95px'),
                                    'buttons' => array(
                                           'edit_date' => array( //the name {reply} must be same
                                             'label' => 'Add Date', // text label of the button
                                               'url' => 'Yii::app()->createAbsoluteUrl("NimsoftHostsDetails/View", array("id"=>$data->host_id))', 
                                                  'imageUrl' => Yii::app()->baseUrl.'/images/icons/pencil.png',  // image URL of the button. If not set or false, a text link is used, The image must be 16X16 pixels

                                               ),
                                           ),)

                ),

)); 

?>

检查您的控制器是否

$model = new YourModel('search');
$model->unsetAttributes(); // clear any default values

if (isset($_GET['YourModel'])) {
    $model->attributes = $_GET['YourModel'];
}
检查您的模型“函数搜索()

在“搜索安全”字段的“规则”中检查您的模型