2017 © Pedro Peláez
 

library yii-bootstrap-3-module

Yii Web Widgets

image

drmabuse/yii-bootstrap-3-module

Yii Web Widgets

  • Saturday, April 30, 2016
  • by brewing
  • Repository
  • 0 Watchers
  • 0 Stars
  • 71,448 Installations
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

Yii Bootstrap 3 Extension

Latest Stable Version 0.0.9

Montly Downloads Montly Downloads
Total Downloads Total Downloads

Demo-Page

Class Reference

Demo-Page-Example Bitbucket

Changes

Code

[Bitbucket]0, (*1)

Download here the bootstrap package.

Append in Your Layout:, (*2)

<?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, (*3)

protected/extensions/

Folder or install with Composer, (*4)

Packagist, (*5)

"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.

Configure

configure, (*6)

config/main.php

with, (*7)

<?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'
    ),
)

Full Config Example, (*8)

The Versions

30/04 2016

dev-master

9999999-dev https://bitbucket.org/DrMabuse/yii-bootstrap-3-module

Yii Web Widgets

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

framework extension bootstrap yii

27/12 2014

dev-development

dev-development https://bitbucket.org/DrMabuse/yii-bootstrap-3-module

Yii Web Widgets

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

framework extension bootstrap yii

31/10 2013

0.0.7

0.0.7.0 https://bitbucket.org/DrMabuse/yii-bootstrap-3-module

Yii Web Widgets

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

framework module yii

23/10 2013

dev-javascript

dev-javascript https://bitbucket.org/DrMabuse/yii-bootstrap-3-module

Yii Web Widgets

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

framework module yii

16/10 2013

0.0.5

0.0.5.0 https://bitbucket.org/DrMabuse/yii-bootstrap-3-module

Yii Web Widgets

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

framework module yii