Twitter Bootstrap 2.3.2 for Yii

Latest Stable Version Build Status

Yiistrap is the new version of the Yii-Bootstrap extension developed by Christoffer Niska (Yii-Bootstrap) and Antonio Ramirez (YiiBooster). Yiistrap is a complete rewrite of the popular Yii-Bootstrap extension and its goal is to provide a solid tool for including Twitter Bootstrap in your Yii projects. It's faster, easier to use and more extensive than it's predecessor and it can also be easily extended.



Installation instructions can be found here: Getting started with Yiistrap


1.1.0 (September 1, 2013)

  • Add new functionality to TbWidget
  • Fix unit tests

1.0.0 (August 29, 2013)

  • Add support for custom labels in control groups

1.0.0 RC2 (August 23, 2013)

  • Fix a lot of minor issues

1.0.0 RC1 (July 29, 2013)

  • Added unit tests
  • Added an array helper
  • Refactor the html helper a lot
  • Fix quite many smaller bugs

1.0.0 BETA (June 15, 2013)

  • Initial BETA release

Total 20 comments

#18084 report it
mem at 2014/09/05 10:51am
Thank you

Really. It's not that I wish to put my nose on things, but, indeed, I need to figure out, for my company sake, what's going on, if things are stable, if they aren't stable, if we can rely on them, or not and so on...

Thanks, again, for taking the time to resume the all thing.

#18082 report it
Don Felipe at 2014/09/05 06:21am
@mem ... a crash course in yii-bootstrap history

Background info: I think I started following the original bootstrap extension since day 1 or 2 and after a year long hiatus I came back here (Yii) a few months ago just to find out everything had changed in the meantime. Having said this I can see how people like you, who are new to Yii can be quite confused by the many bootstrap extensions. Long story short here's the history of Yii-Bootstrap... and Chris83 and Antonio Ramirez (guys, let me know if the following is missing any details):

  • 09/2011 - Yii-Bootstrap extension by Chris83 based on the original bootstrap. Note: There is another extension from another guy that is actually named "Yii-Bootstrap" but it's really not that good. Well, Chris' stuff is way superior!

  • 10/2012 - YiiBooster by Antonio Ramirez. At that time Antonio was working for Clevertech. At some point in 2013, I think, Antonio left Clevertech and the company continued taking care of YiiBooster (and YiiBoilerplate, a structure to support bigger projects).

  • 06/2013 - YiiStrap by Chris83 & Antonio R. and this one is "a complete rewrite" of the original Bootstrap extension by Chris83 and Antonio R.

  • 07/2013 - YiiWheels by Antonio R. and others. This one only adds additional js functions and libraries etc. to YiiStrap. It requires YiiStrap.

  • xx/2014 - There's a version of YiiStrap with Bootstrap 3+ in the making.

Thanks to Chris83, Antonio R., and everybody else who contributes to these extensions in one way or another to make our lives so much easier. Keep up the good work! :)

Last not lease, 2amigos is the company Antonio is working for at the moment. Not sure how many guys from Clevertech followed Antonio over to 2amigos? Anyways, 2amigos also have their fingers on YiiFoundation (even more responsive css) and yiinitializr (think YiiBoilerplate 2.0).

#18058 report it
mem at 2014/09/02 12:22pm
Totally lost here

Can someone please make me understand this. YiiBooster is something that Antonio did? Or is something that Clevertech did? Are they the same, what about 2Amigos?

Is this http://yiibooster.clevertech.biz/ a merge of all?

But here it talks about YiiBooster as a predecessor? https://github.com/crisu83/yiistrap

Can someone please make me understand this?

#17966 report it
Masoud Sawari at 2014/08/19 04:23am
Please Update The Documentation
  1. Please update the documentation in official site. How to configure v1.2.0?

  2. Please be more clear in documentation. there are no enough example or help to use property of classes.

We like the YiiStrap (and his brother YiiWheels). But dozens of questions still remain unanswered.

#17456 report it
msoa at 2014/06/15 09:42am
upgrading to bootstrap 3.x.x

Is plain for upgrading to bootstrap 3.x.x

#17452 report it
Daniel Galvan at 2014/06/13 03:48pm
Greate work!

Thanks for sharing.

#17031 report it
JbalTero at 2014/04/26 07:52am
How to install yiistrap-widgets?

Anyone how to install yiistrap-widgets?


#16879 report it
Edgar Kuskov at 2014/04/07 12:48pm
ToolTip jump TOP

Hello guys,

to fix this issue, that click on tooltip flies to the top change the line 4083 in TbHtml.php to:

return self::tooltipPopover($label, 'javascript://', $title, $htmlOptions);
#16763 report it
Néstor Acevedo at 2014/03/25 07:48pm
a bug

I've just checked a bug with urlManager:

when is dissabled works fine, but when is enabled, in the main page works fine but changing to another url many assets gets with error 500. in the forum I will post exactly what happens.

same was happening with your previous extension.

#16563 report it
jcagentzero at 2014/03/05 08:49pm
Is this extension still supported?

We are using yii bootstrap but saw the limited widgets that it has and saw the yiibooster but it seems it was discontinued.

#16093 report it
prPixabit at 2014/01/19 02:01pm
Submit-URL & LESS

First of all: thank you for bringing bootstrap to yii! Your work is very appreciated;

Secondly, I would like to bring up a question: how do I define the submit-URL for the TbHtml::submitButton? I tried 'url' => and 'submitUrl', both inside the options-array as well as directly in the button - without getting it to work. Can someone throw a hint? Cudos in advance!

I would also be interested in using bootstrap.less; I guess I would have to register the bootstrap.less-file from assets/less instead of bootstrap.css in the TbApi?

#16012 report it
Ibrar Turi at 2014/01/09 05:54am
Great Job!

Thanks for hard work... :)

#15932 report it
Scott_Huang at 2013/12/31 04:50am
A guide for how to integrate yiibooster and Yiiwheels&yiistrap.


It is quite easy to integrate actually. Why @Chris83 not modify source code directly??

Question to @Chris83: Yiistrap can work well in firefox, however, cannot work fine in IE9/QQbrowser and so on. Can you help to fix it? Btw, Yiibooster can work well both in firefox/IE9/QQbrowser.

#14987 report it
Muhammad Shahzad at 2013/09/26 06:45am
How to use yiistrap Only Use in Module


I need to use yiistrap only in admin module, how it is possible? And also I want to keep client side css , designs as it is before!!!

#14975 report it
Ednei at 2013/09/25 11:42am

I'm using TbGridView, but the row search(filter) does not work! How do I activate this feature?

#14925 report it
Chris83 at 2013/09/22 07:06am
@Shahzad Thathal

Use a different layout for the module and call one or more of the register methods in TbApi there.

#14924 report it
Muhammad Shahzad at 2013/09/22 03:30am
Yiistrap using in Module

How I can use Yiistrap only in one module and avoid to css affects on my other css files and admin area?

#14805 report it
Xavier John at 2013/09/11 03:25am
To run Gii bootstrap

Configure config/main.php as

'gii' => array(
            'class' => 'system.gii.GiiModule',
            'generatorPaths' => array('bootstrap.gii'),
            'password' => 'MySecret',
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters' => array('', '::1'),
#14693 report it
cualit at 2013/09/03 08:15pm
Popover placement is wrong: always right

Popover placement is wrong, they always display right despite of the placement set. By the way, thanks for the awsome Extension!

#14688 report it
schmunk at 2013/09/03 01:23pm
Bootstrap 2 to 3 Upgrade Script

Hi Chris,

just found bootstrap-3-upgrade Especially: server.js

I don't volunteer ;) ... but that should not be too much work.

Best regards, schmunk

Leave a comment

Please to leave your comment.

Create extension