Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14115

Pagination suffix & reuse_query_string problem

$
0
0
Hi everyone.

I'm having trouble with CI pagination class.
My URL looks like: http://domain.com/chapter/2?var=value#anchor, where 2 is a number of a page added by pagination class.
I want my pagination to use #anchor suffix each time when user selects another page and also I need to keep query string ?var=value.

As I can see in the manual I need to use:

Code:
$config['reuse_query_string'] = TRUE;
$config['suffix'] = '#anchor';

But when I'm trying to set config in such a way, my pagination links redirecting users to: http://domain.com/chapter/2#anchor?var=value instead of http://domain.com/chapter/2?var=value#anchor.

I can't understand why it's happening  Huh
Could anyone, please, give me an advice?

Thanks in advance!

Viewing all articles
Browse latest Browse all 14115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>