How to load before - 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: How to load before (/showthread.php?tid=19287) |
How to load before - El Forum - 06-03-2009 [eluser]Le Bang[/eluser] I want load some model for get some config from database before load URI library. Because when URI lib load. It use some value configed. I building my project with config dynamic on database. How to??? How to load before - El Forum - 06-03-2009 [eluser]Dam1an[/eluser] Due to the load order you don't have the DB libraries loaded when you need them, so you can either create a db object yourself, but this will mean you have 2 db connections per call (unless you unset one?) Or, you can 'hack' the core and change the load order although I don't advise that as it will probably break something else How to load before - El Forum - 06-03-2009 [eluser]Le Bang[/eluser] No no. If i intervention to core system the very easy. I want do not change CI system. |