Problem with pagination - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Problem with pagination (/showthread.php?tid=18576) |
Problem with pagination - El Forum - 05-11-2009 [eluser]koichirose[/eluser] I'm succesfully using pagination in a controller in my website; the code is roughly this (omitting non-relevant parts): Code: $this->load->library('pagination'); I'm now trying the same thing on another controller, which has a 4-segments URI: Code: $this->load->library('pagination'); In this second case, the pagination works but if I select page 3 the 'selected' page remains the number 1 (although content and the url change correctly, with the new url being for example /panel/archivio/live/60 ). The code seems pretty much the same to me, except for the uri-segments.... How can I solve this? Thank you! Problem with pagination - El Forum - 05-11-2009 [eluser]koichirose[/eluser] I'm so sorry, I solved it with $config[‘uri_segment’] = 4; -_____- |