Using initialize() in pagination with an external configuration - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Using initialize() in pagination with an external configuration (/showthread.php?tid=67355) |
Using initialize() in pagination with an external configuration - n2fole00 - 02-14-2017 Hi, in the pagination docs it says Quote:You will NOT need to use $this->pagination->initialize() if you save your preferences in a config file. I have made this file and have a bunch of configurations there, but if I leave the initialize part out of my controller, the pagination links don't show at all. It's not a big deal because it works when I add it, but I was curious know what the docs meant by this. Here is my code Controller PHP Code: public function read($pagination_offset = 0) Model PHP Code: public function get_languages($limit, $pagination_offset) PHP Code: <?php View PHP Code: <?php if (!empty($pagination)): ?> Thanks |