Goods yii comunity!
I’m trying to use CGridView in view _form using model from other controller this is the code
$model2= Equipo::model();
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'equipo-grid',
'dataProvider'=>$model2->search(),
'filter'=>$model2,
'ajaxUrl'=>array('equipo/admin'),
'columns'=>array(
'idequipo',
'marca',
array(
'class'=>'CCheckBoxColumn',
),
)
));
this code work (atach picture 2623
), the trouble is when you try to search in the CGridView becasuse CGridView load all colums of Equipos` Controllers and i don’t need that.
picture=>2624
Regards…