Welcome Guest, Not a member yet? Register   Sign In
Pagination suffix & reuse_query_string problem
#9

The suffix is used to add a file type extention like .html to all your urls. Normaly you would want a url like /home.html?var=value#anchor where in this case home is the name of your controller. So I believe that "$this->suffix .= $query_string;" is correct.

My guess here is that you use the query string variable to filer/sort your data? If so perhaps you could put those variables as parameters to your method function. you will get somewhat prettier urls as well.
Or perhaps store the sort value in the users session.

But perbaps it's just easier to just generate the pagination links without your suffics and inject them afterwards.
PHP Code:
$pagination $this->pagination->create_links();
$pagination str_replace('</a>''#anchor</a>'$pagination); 
Reply


Messages In This Thread
RE: Pagination suffix & reuse_query_string problem - by Diederik - 09-09-2016, 07:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB