Yep, first thing we need to do is to download the package and unzip its contents on your extensions folder on your Yii application development project. If you already have problems with this step (we hope not), we recommend you to use our YiiBoilerplate, as everything is already configured on its backend application.
Fastest way to get started: get the source of the already configured project structure template.
Unzip the extension under protected/extensions/bootstrap, the structure of your (Yii's default) application should look like this:
protected/ └── extensions └── bootstrap ├── assets │ ├── css │ ├── img │ ├── js │ └── less ├── components │ Bootstrap.php └── widgets └── input
Now, that we have placed the library where it belongs, lets configure the component. On your main.php config file:
'preload' => array( ... 'bootstrap', ... ), 'components' => array( ... 'bootstrap' => array( 'class' => 'ext.bootstrap.components.Bootstrap', 'responsiveCss' => true, ), ... ), // YiiBooster includes all the features from its parent // project Yii-Bootstrap, thus its gii templates 'modules' => array( ... 'gii' => array( ... 'generatorPaths' => array( 'bootstrap.gii' ), ), ...
The configuration is the same as you do when installing the amazing Yii-Bootstrap extension from Chris.
YiiBooster has all the widgets from its parent Yii-Bootstrap plus+.
The YiiBooster provide the following interface elements:
Important! Please, note that even if some of the Components above make use of some well-known jquery plugins, that you may recognize (ie. jeditable and its plugins) , they have been modified to make them work properly with the library. So, it is recommended to update them via updating YiiBooster library itself.
Head to the docs for information, examples, and code snippets.Visit the YiiBooster docs!