Tbgridview - Bootstrap Extension

Hello guys!

I’m a really start onYii, I’m Portuguese (sorry my bad English sometimes).

So I have Yiiv1.1.14 and I downloaded the Bootstrao extensions from here:


At this moment I have a problem, and I have no idea to resolvi it…

So, I created the CRUD structure on giiTool, and now I’m trying to display results in a simple tamble (tbridView) on index view page.

I have this (original code):


        $this->widget('zii.widgets.CListView', array(

            'dataProvider' => $dataProvider,

            'itemView' => '_view',



in _view.php I just have this:

<?php echo CHtml::encode($data->nomeUtilizador); ?>

And what I want to display this result in a table (tbRidView), and I changed to:


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

            'dataProvider' => $dataProvider,

            'itemView' => '_view',



Then I run and I have a error:

"Property "TbGridView.itemView" is not defined."

Can someone help me?

Thanks guys! ('m a really noob at this…)


That error means there is no ‘itemView’ property in TbGridView, so just remove that line and you’re good to go.

Below is our working example:


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

    'type' => 'striped bordered condensed',

    //'filter' => $model,

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

    'ajaxUrl' => $this->createUrl('items/admin'),

    'id' => 'items_search',

    'template' => "{items}\n{pager}",


    'columns' => array(

		array('name' => 'ItemCode', 'header' => 'Item Code'),


                array('name' => 'ItemDesc', 'header' => 'Item Description')




Hi! Very useful! However I couln’t use every lines

My problem is different… I can’t explain here.

However, one more time: I could resolve my problem :D

Thank you jcagentzero :D