yii

How can use Yii Bootstrap GridView in your application?

This is very easy! You can try following below code snippets to achieve the goal. But I strongly suggest browsing Yii Bootstrap site for more details.

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
   'type' => 'striped bordered condensed',
    'dataProvider' => $dataProvider,
    'template' => "{items}\n{pager}",

    'columns'=>array(
       array('name' => 'last_name', 'header'=>'Name'),
       array('name' => 'email', 'header'=>'Email Address'),
       array('name' => 'mobile_phone', 'header'=>'Mobile Phone'),
       array('name' => 'city', 'header'=>'City'),
       array(
         'class' => 'bootstrap.widgets.TbButtonColumn',
         'htmlOptions' => array('style'=>'width: 50px'),
       ),
    ),
));

?>