Hi
I have two different models (test1, test2; no relations) and i would like to show, search and sort the values with (tbgridview) cgridview in a View of test1. The code below shows my actually status. „Cgridview $model2“ shows all values from the database and i can sort it, but when i use the search field (filter), cgridview shows all values
Whereas, Cgridview $model1 works perfectly.
Code: view test1
<?php
$model2= test2::model();
$this->widget('bootstrap.widgets.TbGridView',array(
'type'=>'striped condensed',
'template'=>"{items}\n{pager}",
'dataProvider'=>$model2->search(),
'filter'=>$model2,
'emptyText'=>'no results!',
'columns'=>array(
'id',
'name',
'example'),
));
?>
Can any body help me?