Extra Pagination Page Number - 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: Extra Pagination Page Number (/showthread.php?tid=54135) |
Extra Pagination Page Number - El Forum - 08-24-2012 [eluser]Unknown[/eluser] Hi , When I'm using pagination with $config['use_page_numbers'] = TRUE; and ci makes pagination links, it put 1 extra page number!! for example i have 38 rows!and per_page is 10, ci makes 1 2 3 4 5 (the Five is Extra!) this is my code: Code: $msg = $this->session->flashdata('msg'); Extra Pagination Page Number - El Forum - 08-24-2012 [eluser]Unknown[/eluser] i think i found the bug! the cause is: { Code: if ($this->use_page_numbers) i just add a =-1 to this if statement and it works correctly! Code: if ($this->use_page_numbers) AND this is a very first part of create_link function in pagination library in system->library folder that should change! Code: function create_links() |