如何配置yiibooster

如何配置yiibooster,yii,yii-extensions,Yii,Yii Extensions,感谢阅读,我想知道如何安装 伊伊布斯特 ,我需要安装吗 易布茨陷阱 首先? 我想手动安装它,将它解压缩到extensions文件夹,然后配置main.php是否足够,或者我缺少什么 还有,我怎样才能使这一点走上正确的道路 'booster' => array( 'class' => 'path.alias.to.booster.components.Booster', ), 您不需要安装引导。Yiibooster包括它需要的所有引导文件。只需下载Yiiboost

感谢阅读,我想知道如何安装

伊伊布斯特

,我需要安装吗

易布茨陷阱

首先? 我想手动安装它,将它解压缩到extensions文件夹,然后配置
main.php
是否足够,或者我缺少什么

还有,我怎样才能使这一点走上正确的道路

'booster' => array(
'class' => 'path.alias.to.booster.components.Booster',
          ),

您不需要安装引导。Yiibooster包括它需要的所有引导文件。只需下载Yiibooster,解包到扩展文件夹并将以下内容添加到主配置文件中

'booster' => array(
        'class' => 'ext.yiibooster.components.Bootstrap',
        'responsiveCss' => true,
        ),
然后在配置的预加载部分添加以下内容:

'booster',

将文件夹名称yiibooster-4.0.1重命名为yiibooster

第1步:

'preload' => array(
   'booster',
),
第二步:

'booster' => array(
'class' => 'ext.yiibooster.components.Booster', 
'responsiveCss' => true, 
),
注意:此类名

//Use view file

<?php
$this->widget('booster.widgets.TbExtendedGridView',
    array(
        'filter' => $model,
        'fixedHeader' => true,
        'type' => 'striped bordered',
        'headerOffset' => 40,
        // 40px is the height of the main navigation at bootstrap
        'dataProvider' =>$model->search(),
        'template' => "{items}",
        'columns' => array(
                'id',
                'firstname',
                'lastname',
                'age',
                'address',
                'email',
            ),
    )
);
?>
//使用视图文件

'class'=>'protected/components/Booster',
我是否需要在安装引导之前安装引导,以及是否需要在组件中解包引导?或者我可以在受保护的情况下解包吗?你可以在任何地方解包,但最好是解包到components dir。sory,我的意思是,我需要在获得booster之前解包引导程序吗?我发现没有安装引导程序的要求。
//Use view file

<?php
$this->widget('booster.widgets.TbExtendedGridView',
    array(
        'filter' => $model,
        'fixedHeader' => true,
        'type' => 'striped bordered',
        'headerOffset' => 40,
        // 40px is the height of the main navigation at bootstrap
        'dataProvider' =>$model->search(),
        'template' => "{items}",
        'columns' => array(
                'id',
                'firstname',
                'lastname',
                'age',
                'address',
                'email',
            ),
    )
);
?>