2017 © Pedro Peláez
 

library yiistrap

Twitter Bootstrap for the Yii PHP framework.

image

crisu83/yiistrap

Twitter Bootstrap for the Yii PHP framework.

  • Monday, January 22, 2018
  • by tonydspaniard
  • Repository
  • 60 Watchers
  • 311 Stars
  • 96,891 Installations
  • PHP
  • 28 Dependents
  • 0 Suggesters
  • 194 Forks
  • 12 Open issues
  • 31 Versions
  • 6 % Grown

The README.md

Yiistrap

Build Status, (*1)

Twitter Bootstrap for Yii., (*2)

NOTE!

We have re-arranged the repository for this project to make it easier for people to choose the right version. Please make sure you do the following changes if they apply to you:, (*3)

  • If you are using the old bs3 branch you should switch to use the 2.0.0 tag (or 2.0.x-dev alias).
  • If you are using the old master branch you should switch to use the 1.x branch.

Installation

With Composer

The easiest way to install Yiistrap is to use Composer. Add the following to your composer.json file:, (*4)

"require": {
    "crisu83/yiistrap": "2.0.x-dev"
}
````

Run the following command to download the extension:

```bash
php composer.phar update

Add the following to your application configuration:, (*5)

.....
'components' => array(
    .....
    'bootstrap' => array(
        'class' => '\TbApi',
    ),
),
.....
'modules' => array(
    .....
    'gii' => array(
        'class' => 'system.gii.GiiModule',
        'generatorPaths' => array('vendor.crisu83.yiistrap.gii'),
    ),
),
.....

Add the following line to your main layout in protected/views/layouts/main.php to register the necessary CSS and JavaScript files:, (*6)

<?php Yii::app()->bootstrap->register(); ?>

Without Composer

Follow the above steps first, but download and unzip Yiistrap instead of requiring it through Composer., (*7)

Then you also need to add the following to your application configuration:, (*8)

'aliases' => array(
    'yiistrap' => __DIR__ . '/relative/path/to/yiistrap',
),
.....
'import' => array(
    .....
    'yiistrap.behaviors.*',
    'yiistrap.components.*',
    'yiistrap.form.*',
    'yiistrap.helpers.*',
    'yiistrap.widgets.*',
),
.....

Usage

Documentation not updated yet, but use the current docs as a guideline: http://www.getyiistrap.com, (*9)

Use the following command to generate ApiGen documentation:, (*10)

php vendor\bin\apigen generate

Note: When you use a widget, prepend a \ to the filename to use autoload it through Composer:, (*11)

<?php $this->widget('\TbNav', array(
    'type' => TbHtml::NAV_TYPE_TABS,
    'items' => array(
        array('label' => 'Home', 'url' => '#', 'active' => true),
        array('label' => 'Profile', 'url' => '#',),
        array('label' => 'Messages', 'url' => '#',),
    ),
)); ?>

The Versions

22/01 2018

dev-master

9999999-dev

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

22/01 2018

2.0.4

2.0.4.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

22/01 2018

dev-fix-version-constraint

dev-fix-version-constraint

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

17/04 2015

dev-develop

dev-develop

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

17/04 2015

2.0.3

2.0.3.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

17/04 2015

2.0.2

2.0.2.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

17/04 2015

2.0.1

2.0.1.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

17/04 2015

2.0.0

2.0.0.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

27/02 2015

dev-bs3

dev-bs3

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

bootstrap yii

08/09 2014

1.x-dev

1.9999999.9999999.9999999-dev

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

12/02 2014

1.3.0

1.3.0.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

30/01 2014

1.2.3

1.2.3.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

13/11 2013

1.2.2

1.2.2.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

11/11 2013

1.2.1

1.2.1.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

25/10 2013

1.2.0

1.2.0.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.1.1

1.1.1.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.1.0

1.1.0.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.0.9

1.0.9.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.0.8

1.0.8.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.0.7

1.0.7.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.0.6

1.0.6.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.0.5

1.0.5.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

01/09 2013

1.0.4

1.0.4.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

29/08 2013

1.0.3

1.0.3.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

29/08 2013

1.0.2

1.0.2.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

29/08 2013

1.0.1

1.0.1.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

29/08 2013

1.0.0

1.0.0.0

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

23/08 2013

1.0.0-rc2

1.0.0.0-RC2

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

30/07 2013

dev-stable

dev-stable

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

30/07 2013

1.0.0-rc1

1.0.0.0-RC1

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

The Development Requires

bootstrap yii

12/05 2013

1.0.0-beta

1.0.0.0-beta

Twitter Bootstrap for the Yii PHP framework.

  Sources   Download

BSD-3-Clause

bootstrap yii