Welcome Guest, Not a member yet? Register   Sign In
SQL code in a config file
#2

[eluser]Crafter[/eluser]
I'm not quite sure of you are asking if you can do this or how you can do this.

The config files are loadded at a very early stage when CI is loading. You therefore don't have an instance of CI loaded and therefore your database libraries may not be accessible,

However, you can load your own config file at any time and loading database values should not be a problem.

I've not this but the best is to try it out for yourself. If your CI class is not available, you may have to load another instance (get_instance).


Messages In This Thread
SQL code in a config file - by El Forum - 01-11-2008, 05:58 AM
SQL code in a config file - by El Forum - 01-11-2008, 02:09 PM
SQL code in a config file - by El Forum - 01-11-2008, 02:40 PM
SQL code in a config file - by El Forum - 01-11-2008, 03:19 PM
SQL code in a config file - by El Forum - 01-11-2008, 05:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB