Welcome Guest, Not a member yet? Register   Sign In
Loading a Model inside of a config file to pull configurations from DB and store in $config array
#3

[eluser]CroNiX[/eluser]
In the CI bootstrap, the configs are loaded way before the database (which isn't even required), so no models are available to the config. You can get around that by saving your xml files to the filesystem instead of the db, or use a MY_Controller as @weboap suggested.


Messages In This Thread
Loading a Model inside of a config file to pull configurations from DB and store in $config array - by El Forum - 05-10-2012, 01:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB