zii.widgets.grid.CGridView Error Displaying the result

[size="4"]i have the zii.widgets.grid.CGridView with 10 search filters when i try to do the advance search the widget result give 268 but the zii widget display 4 result per page and 27 page only which is wrong .

expected result =>show 27 page 10 results in each.




$widget=$this->widget(‘zii.widgets.grid.CGridView’, array(


'dataProvider'=>$model->search($user_filter , $creation_filter ,$subtag_filter ,$business_owner_id_filter ,$phone_filter ,$geo_point_filter ,$logo_uri_filter , $photos_filter ,$from_dayTime_filter ,$reviews_filter ),




                    'name' => 'id',

                    'value' => '$data->id',

                    'selectableRows' => '2 or more', //notice

                    'class' => 'CCheckBoxColumn',


















Why are you sending parameters to the $model->search() method?

Check the default code generated by Gii to see how the filtering/search works…

because i want to do special filters in the model search so i can filter as specific value

the search is done in the model->search() function… so can’t help you without looking at that code…