Welcome Guest, Not a member yet? Register   Sign In
Problem with using Pagination class
#1

[eluser]luismartin[/eluser]
I'm struggling with something related to the Pagination class:

I've created a view to display listings which is common to many types of these in my backend. The list is similar to the ones in most CRMs (it's enclosed in a form to add manipulation functionalities). Now I've added a field to allow for searches in a list, but a problem comes when using this in conjunction with the Pagination class.

First of all: would you recommend using POST variables to apply filters/searches, GET variables? or URL segments? I'm speaking about the backend, so SEF URL's are not a priority. URL segments with so many optional parameters sound a bit complicated since every parameter has to keep its order.

In case you want to use POST variables, or you need it, you will need to create the pagination links as javascript calls in order to propagate the filters/search term through POST prior to submit the form. How could you do this using CI's Pagination class?

#2

[eluser]luismartin[/eluser]
Anyone please? Any help/suggestion is greatly welcome.
#3

[eluser]luismartin[/eluser]
*bump*




Theme © iAndrew 2016 - Forum software by © MyBB