Welcome Guest, Not a member yet? Register   Sign In
Best practice for pagination and storing search parameters
#1

[eluser]Samuurai[/eluser]
Hi,

I'm trying to paginate and sort results after performing a search.
I've used my URI to specify result parameters which looks like this:
Code:
/user/10/asc/first_name

//which translates to this:

/controller/<start_number>/<asc or desc>/<field_name>

However, how about if I throw a search string into the mix? My search string will be an array of different skills plus a start and end date.

Post variables are clunky in this instance.. ideally it should be get variables, but I'm wondering how I should tackle this one using the CI ethos. I thought about using a session to store the search params, but ideally I want the page number to be bookmarkable.

Cheers!


Messages In This Thread
Best practice for pagination and storing search parameters - by El Forum - 04-29-2010, 07:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB