drmabuse / yii-bootstrap-3-module
Yii Web Widgets
Installs: 103 495
Dependents: 2
Suggesters: 0
Security: 0
pkg:composer/drmabuse/yii-bootstrap-3-module
Requires
- php: >=5.3.0
 
This package is auto-updated.
Last update: 2025-10-22 01:57:15 UTC
README
Latest Stable Version 0.0.9
Montly Downloads 
Total Downloads 
Demo-Page
Class Reference
Demo-Page-Example Bitbucket
Changes
Code
[Bitbucket]0
Download here the bootstrap package.
Append in Your Layout:
<?php
$cs = Yii::app()->clientScript;
$themePath = Yii::app()->theme->baseUrl;
/**
 * StyleSHeets
 */
$cs
    ->registerCssFile($themePath.'/assets/css/bootstrap.css')
    ->registerCssFile($themePath.'/assets/css/bootstrap-theme.css');
/**
 * JavaScripts
 */
$cs
    ->registerCoreScript('jquery',CClientScript::POS_END)
    ->registerCoreScript('jquery.ui',CClientScript::POS_END)
    ->registerScriptFile($themePath.'/assets/js/bootstrap.min.js',CClientScript::POS_END)
    ->registerScript('tooltip',
        "$('[data-toggle=\"tooltip\"]').tooltip();
        $('[data-toggle=\"popover\"]').tooltip()"
        ,CClientScript::POS_READY);
?>
<!-- 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>
<![endif]-->
Download the Extension
Extension Move the Package to your
protected/extensions/
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. Thecommon/config/main.phpis configured to use sqllite by default. Change yourcommon/config/env/dev.phpto suit your database requirements. - Composer is required The package includes already a 
composer.pharfile. - Browse through the 
composer.jsonand remove the dependencies you don't need also update the required versions of the extensions. - If you have 
composerinstalled globally: - Run 
composer self-updateto make sure you have the latest version of composer. - Run 
composer installto download all the dependencies. - If you work the 
composer.pharlibrary within the project boilerplate.- Run 
php composer.phar self-updateto make sure you have the latest version of composer. - Run 
php composer.phar installto download all the dependencies. 
 - Run 
 
 - Update the configurations in 
 
Configure
configure
config/main.php
with
<?php
'aliases' => array(
    'bootstrap' => 'ext.bootstrap',
),
'import'=>array(
    ...
    'bootstrap.behaviors.*',
    'bootstrap.helpers.*',
    'bootstrap.widgets.*'
),
'modules' => array(
    ...
    'gii' => array(
        ...
        'generatorPaths' => array('bootstrap.gii'),
    ),
),
'components' => array(
	...
    'bootstrap' => array(
        'class' => 'bootstrap.components.BsApi'
    ),
)