Yii Bootstrap 3 Module

Latest Stable Version 0.0.8

Montly Downloads Montly Downloads
Total Downloads Total Downloads


Class Reference

Demo-Page-Example Bitbucket




Download here the bootstrap package.

Append in Your Layout:

$cs = Yii::app()->clientScript;
$themePath = Yii::app()->theme->baseUrl;

 * StyleSHeets

 * JavaScripts


<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/assets/js/html5shiv.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl ?>/assets/js/respond.min.js"></script>

Download the Module

Module Move the Package to your


Folder or install with Composer


"drmabuse/yii-bootstrap-3-module": "dev-master"
  • Set up Git by following the instructions here.
  • Update the configurations in app/config/ to suit your needs. The common/config/main.php is configured to use sqllite by default. Change your common/config/env/dev.php to suit your database requirements.
  • Composer is required The package includes already a composer.phar file.
  • Browse through the composer.json and remove the dependencies you don't need also update the required versions of the extensions.
  • If you have composer installed globally:
    • Run composer self-update to make sure you have the latest version of composer.
    • Run composer install to download all the dependencies.
  • If you work the composer.phar library within the project boilerplate.
    • Run php composer.phar self-update to make sure you have the latest version of composer.
    • Run php composer.phar install to download all the dependencies.





    'aliases' => array(
            'bootstrap' => 'application.modules.bootstrap',
    'modules' => array(
            'bootstrap' => array(
                'class' => 'bootstrap.BootStrapModule'
            'gii' => array(
                'generatorPaths' => array('bootstrap.gii'),
                'class' => 'system.gii.GiiModule',
                'password' => 'yaa',
                'ipFilters' => array('','::1'),

    'components' => array(
            'bsHtml' => array(
                'class' => 'bootstrap.components.BSHtml'

Full Config Example