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

[eluser]Wuushu[/eluser]
[quote author="Crafter" date="1200103754"]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[/quote]

Doesn't matter when they are loaded.. if it's 10 milliseconds or 10 minutes after CI has loaded..

1) Retrieve your stuff from database / edit / save ->
2) write a function that will write your "stuff" to myVerySpecialConfig.php
like so $config['key'] = value;
3) autoload myVerySpecialConfig.php


Not possible? Maybe, maybe not! Haven't tried!


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