javedboqo
(Javi Hunzai)
1
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(
....
vantuan113
(Takahashi9x)
2
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
javedboqo
(Javi Hunzai)
3
Yeah I know GII will create some widgets. But I need all bootstrap widgets as we already used in YII 1.x
vantuan113
(Takahashi9x)
4
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
Scott_Huang
(Zhiliang Huang)
5
Please search Kartik-v grid, it is a great widget with Bootstrap style, thx.