CodeIgniter Forums
Codeigniter parameter changes during pagination - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Codeigniter parameter changes during pagination (/showthread.php?tid=58990)



Codeigniter parameter changes during pagination - El Forum - 08-12-2013

[eluser]codecombustor[/eluser]
I am using regular CodeIgniter Pagination Class. Whenever I change the page number the parameter that has been sent gets replaced with the pagination parameters.

Using HMVC file structure. I'm trying to set something like:

folder/class/function/some_parameter/pagination_parameter

But for some reason i'm unable to use $config['uri_segment'] = '5';


Any ideas?


Codeigniter parameter changes during pagination - El Forum - 08-12-2013

[eluser]PravinS[/eluser]
try printing you segment array using

$this->uri->segment_array()