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

		'dataProvider'=>$model->search(),

		'template'=>"{summary}{items}{pager}",

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

		'filter'=>$model,

		'afterAjaxUpdate' => 'applyChosen',

		'id'=>"gridview",

		'columns'=>array(


....



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

Document here: http://www.yiiframework.com/doc-2.0/guide-start-gii.html

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:

http://www.yiiframework.com/doc-2.0/guide-intro-upgrade-from-v1.html

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

http://www.yiiframework.com/doc-2.0/guide-tutorial-yii-integration.html

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