![]() |
Load pagination config from file - 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: Load pagination config from file (/showthread.php?tid=8591) |
Load pagination config from file - El Forum - 05-23-2008 [eluser]Felipe Diesel[/eluser] Hi, I have upgraded CI to 1.6.2 and the config under config/pagination.php is not being loaded when I show pagination. This is my config file: Code: <?php 'per_page' is loading, but the rest no, still CI default. Load pagination config from file - El Forum - 05-23-2008 [eluser]Felipe Diesel[/eluser] I already find a way to solve it. I was loading config/pagination.php in autoload, because I was using Code: $query = $this->db->get('resumes', $this->config->item('per_page'), $this->uri->segment(4,0)); And this autoload was breaking the load inside pagination class. I don't know if it's a bug, but I do a workaround. |