As the title indicated, I am trying to have $_GET parameters included in the pagination url.
so far what i get is something like :
seg1/seg2/?param1=x¶m2=y¶m3=z/page_number/
it would be more elegant to have something like
seg1/seg2/page_number/?param1=x¶m2=y¶m3=z
FYI : param 1 , param 2 & param 3 are filtering parameters for the query so they are critical .
I appreciate any help
thank you
Can't be done without extending the pagination class.
It expects the 'root' URL for your page, and just sticks the rest on to it, as you have discovered.
I store filtering and sort order in the session. It keeps the URL's clean, and also allows you to remember the users selection when he later revisits the page.
If you want to add support for GET variables, make the modifcations and pull request.
I'm afraid it's not going to work like that.
Fork the github fuel/core repository, make the 1.1/develop branch current, apply your modifications, and send a pull request.
That allows us to quickly verify your changes, and merge them when we approve.
As an alternative to storing page state in a session, you could use the new HTML 5 local storage option that most browsers support now. Just a quick thought .