hi all,
i displayed my content from table using gridview as below ,but
the column i had displayed was not from the corresponding model .the thing i have to do is search for that column which was added newly from another model ,how can i proceed with?
$data->user->NAME was taken from another model ,i have to do search for that column in the current model ,help me please
thanks in advance ![]()
<?php $this->widget(‘zii.widgets.grid.CGridView’, array(
'id'=>'grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
            array(
                'header'=>'Serial Num',
                'value'=>'$row+1',
            ),
            [b]array(
                'header'=>'Name',
                'value'=>'$data->user->NAME',
            ),[/b]
            'Hobby',
	'Interest',
           
       
	array(
		'class'=>'CButtonColumn',
	),
),
)); ?>