I'm displaying a bunch of database query results using the Paginator in a table in my view. I have a few pages of results. I've also added the ability to sort this data using this->Paginator->sort()
, which also works fine.
The only issue is that if I go to the next page (eg page 2 from page 1), all the selected sort options are stripped from the URL. How can I tell the paginator to remember sort options between pages?
param
pass in url ? – urfusion