![]() |
Compilation of problems and solutions that I've encountered that might help others - 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: Compilation of problems and solutions that I've encountered that might help others (/showthread.php?tid=53552) |
Compilation of problems and solutions that I've encountered that might help others - El Forum - 07-28-2012 [eluser]rei[/eluser] Hi, I just want to share this for the sake of others that might encounter the problems I've encountered in using CodeIgniter Framework: Scenario: Pagination is working fine when using offset number 3 but not working when using offset number 4,5 and so on... Solution: Just add $config['uri_segment'] = 4; /* uri segment number that you want to use */ before initializing. Example: Code: $this->load->library('pagination'); This are the list of config variables that you can override: Code: var $base_url = ''; // The page we are linking to I think you could also override defaults in other libraries. Just open the source code of the library and you will see the variables that you can override when initializing. ----------------------------------------------------------------------------------------------------- Scenario: Ion Auth Library dont work well when using HMVC Modular Extensions Solution: http://ellislab.com/forums/viewthread/145263/P1140 look for post # 1145 by EC ------------------------------------------------------------------------------------------------------- Scenario: Session data being lost after redirecting to other pages Solution: download a native php session library for CI. https://github.com/staskus/codeigniter-2.--native-session Just paste in inside application/libraries and your session problem will gone ![]() Compilation of problems and solutions that I've encountered that might help others - El Forum - 07-29-2012 [eluser]PhilTem[/eluser] Thanks for your collection of problems. But could you please wrap your code between [ code ] and [ /code ] tags? (without the spaces) Compilation of problems and solutions that I've encountered that might help others - El Forum - 07-29-2012 [eluser]rei[/eluser] Sure ![]() ![]() |