Welcome Guest, Not a member yet? Register   Sign In
How to load before
#1

[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???
#2

[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
#3

[eluser]Le Bang[/eluser]
No no. If i intervention to core system the very easy.

I want do not change CI system.




Theme © iAndrew 2016 - Forum software by © MyBB