Overblog
Editer l'article Suivre ce blog Administration + Créer mon blog

[YII 1.1.x] Installer Yii Booster

par Morgan

publié dans YiiFramwork

 

Yii booster permet d'intégrer jQuery / Highcharts JS / Twitter Bootstrap / Yii-Bootstrap dans YiiFramework, cela permet de facilité l'écriture du front-end.

Pensez à télécharger la dernière version de YiiBooster http://sourceforge.net/projects/yiibooster/files/latest/download?source=files

 

 

Extraire l'archive à l'intérieur de /protected/extensions/

renommée le fichier yiibooster-version en yiiboooster

 

ouvrez le fichier de configuration (/protected/config/main.php)

 

Juste avant :

return array(

...

)

 

Ajouter :

Yii::setPathOfAlias('booster', dirname(__FILE__) . DIRECTORY_SEPARATOR . '../extensions/yiibooster');

 

Dans l'array preload, ajouter bootstrap :

// preloading 'log' component
    'preload'=>array('log',
                ...
              'bootstrap'),

 

Puis ajouter YiiBooster dans les components :

 

'components'=>array(
     ...
        'bootstrap' => array(
            'class' => 'booster.components.Booster',
        ),

 

Pour utiliser YiiBooster avec Gii :

'gii'=>array(
         ...
            'generatorPaths'=>array(

                ....
                'booster.gii',
                ),
        ),

 

 

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article