I am trying to list users depending on the search criteria, but CLinkPager widget is not working correctly. If I am searching the records with search option, first page listing is good with search criteria, but if I move on to the next page, its loosing the search criteria and not showing the results corresponding to the search option/criteria.
Without search criteria its working perfectly fine.
I’m not sure if this helps you, I have a similar requirement. My client needs to easily find a participant so I provide a functionality to search by name. I have a form that submits a name and the submit button is ‘search_by_name’. The default value of $_POST[‘lastname’] is ‘Lastname’. So if the field is left alone and submit is clicked all of the entrants are returned.
If any other value a query is performed, and the $_GET[] value of ‘lastname’ is set to the current search criteria.
Pagination is working with ‘zii.widgets.grid.CGridView’, I don’t know if this works in your situation, I am too new to the framework to comment on that but maybe the code sample helps you in the right direction.