[SOLVED] Pagination and URI Routing Problem - 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: [SOLVED] Pagination and URI Routing Problem (/showthread.php?tid=10917) |
[SOLVED] Pagination and URI Routing Problem - El Forum - 08-18-2008 [eluser]Rob Rightmyer[/eluser] We are having problems using pagination in conjunction with URI routing. Things are working as expected except the "current" page is not advancing when each pagination link is clicked. Routes.php: Code: $route['gallery2/:num'] = "gallery2/index"; Gallery2.php (controller): Code: <?php If I've ommitted any information that would be helpful in solving this please let me know. [SOLVED] Pagination and URI Routing Problem - El Forum - 08-19-2008 [eluser]Rob Rightmyer[/eluser] After a little more digging, I found my answer here: http://ellislab.com/forums/viewthread/87304/ Needed to add this config line to my pagination: $config['uri_segment'] = '2'; Everything works great now. |