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

#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
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

#14685 report it
Chris83 at 2013/09/03 10:30am

Yiistrap won't be upgraded to use Bootstrap 3 because that would require almost a complete rewrite. Also, there are almost no new features in Bootstrap 3 (except the grid which I'm not too fond of).

#14673 report it
Jorgee at 2013/09/02 02:36pm

Any date for BS3 support? Thanks!

#14658 report it
Chris83 at 2013/09/01 06:51pm

Upgrade to the latest version and that should fix the error.

Leave a comment

Please to leave your comment.

Create extension