Initialising the pagination library part from config file, part within class - 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: Initialising the pagination library part from config file, part within class (/showthread.php?tid=5094) |
Initialising the pagination library part from config file, part within class - El Forum - 01-05-2008 [eluser]Unknown[/eluser] I'm trying to initialise a my pagination links to be set up against a configuration which is partially stored in file (for the html etc) and partially within the calling controller. My config/pagination.php looks like this: Code: $config['full_tag_open'] = '<div class="pagination"><ul>'; Whilst in my controller, (as I want to be able to vary these settings) setting up the links is called with the following: Code: $this->load->library('pagination'); I've never had a problem with this method of initialising the library locally, everything works as expected. But when it is uploaded to my server all I seem to get is the default html for the pagination class. Is it possible to do this and is codeigniter supposed to be working in this way locally? |