I have a table which has many many records.
Now I want to bypass the first time result, users must search for something first in order to show the filtered records.
How can I do that in a simple way??
Thanks
[color="#FF0000"]Updated:[/color]
I just found that I can use the following method (setting data = empty array) to prevent the first time searching
But is it stupid and correct ??
return new CActiveDataProvider(get_class($this), array(
'criteria' => $criteria,
'sort' => $sort,
'pagination' => false,
'data'=>array(),