Welcome Guest, Not a member yet? Register   Sign In
Pagination with standard CI urls + query strings
#1

[eluser]skunkbad[/eluser]
I like to use query strings for searches. The reason for this is that I don't have the annoying browser messages when traveling backwards through history when POST is used. It was pretty easy to extend the Pagination class, and I wouldn't have even needed to extend the class if the $suffix class member was applied to ALL of the pagination links, but it isn't.

If it was, then I could have done something like this in my controller:

Code:
if( ! empty( $_SERVER["QUERY_STRING"] ) )
{
$config['suffix'] =  '?' . $_SERVER["QUERY_STRING"];
}

What do you think? Is there any good reason why the suffix shouldn't be appended to ALL of the links?


Messages In This Thread
Pagination with standard CI urls + query strings - by El Forum - 02-07-2012, 04:55 PM
Pagination with standard CI urls + query strings - by El Forum - 02-07-2012, 05:36 PM
Pagination with standard CI urls + query strings - by El Forum - 02-07-2012, 11:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB