Yii Booster Gridview table joining table

i want to create a table like this Yii Booster Gridview table

here is my code in controller:


$gridDataProvider=new CArrayDataProvider($rawData, array(




         'id', 'customer',




$gridColumns = array(

array('name'=>'id', 'header'=>'Js No.', 'htmlOptions'=>array('style'=>'width: 60px')),

array('name'=>'WHAT TO PUT HERE TO SHOW CUSTOMER NAME', 'header'=>'Customer Name'),


    'htmlOptions' => array('nowrap'=>'nowrap'),





in my model sapcustomers:

return array(

        'customer'=>array(self::BELONGS_TO, 'Sapcustomers', 'customer'),


jobspecs model

return array(

        'cardname'=>array( self::HAS_MANY, 'Jobspecs', 'customer' ),


my view





            'type' =&gt; 'bordered',

            'dataProvider' =&gt; &#036;gridDataProvider,

            'template' =&gt; &quot;{items}&quot;,

            'columns' =&gt; &#036;gridColumns,




as you can see i joined sapcustomers and jobspecs table. my question is what code i need to put on the $gridcolums to show the customer name data from the table sapcustomer. thanks for the help

Try with:

array('name'=>'customer.name', 'header'=>'Customer Name'),

If your attribute of customer table is ‘name’.