Bootstrap Widgets

Hi everyone,

How we can use Bootstrap widgets in Yii 2.0 as we used in yii 1.0.X. Like

$this->widget('bootstrap.widgets.TbGridView', array(

		'type'=>'striped bordered condensed',



 	'summaryText'=>'Displaying {start}-{end} of {count} results.',


		'afterAjaxUpdate' => 'applyChosen',




Let’s use Gii to generate code, you will see many things that you want! :)

Document here:

Yeah I know GII will create some widgets. But I need all bootstrap widgets as we already used in YII 1.x

There are many differences between versions 1.x and 2.0:

=> so I thing you should rewrite your code, or let’s see at the end of above guide, Yii1 and Yii2 can work together:

Please search Kartik-v grid, it is a great widget with Bootstrap style, thx.