Welcome Guest, Not a member yet? Register   Sign In
Separating Config Directory from Application?
#2

[eluser]pickupman[/eluser]
config folder is set in /system/libraries/Common.php (1.7.2) or /system/core/Common.php(2.0dev). You can extended this class to point to another folder. Another option is use something like

config.php
Code:
require_once(__FILE__ .'../../config/config.php');

Let it read up the folder tree to use your system wide config file. Option 2 maybe better as you would be able to place application specific config files into each of their respective config folders, but have one master config.php file for setting system settings.


Messages In This Thread
Separating Config Directory from Application? - by El Forum - 09-13-2010, 07:06 AM
Separating Config Directory from Application? - by El Forum - 09-13-2010, 07:15 AM
Separating Config Directory from Application? - by El Forum - 09-13-2010, 08:29 AM
Separating Config Directory from Application? - by El Forum - 09-13-2010, 08:53 AM
Separating Config Directory from Application? - by El Forum - 09-13-2010, 09:00 AM
Separating Config Directory from Application? - by El Forum - 09-13-2010, 10:59 AM
Separating Config Directory from Application? - by El Forum - 09-14-2010, 08:09 AM
Separating Config Directory from Application? - by El Forum - 09-14-2010, 08:13 AM
Separating Config Directory from Application? - by El Forum - 09-14-2010, 10:56 AM
Separating Config Directory from Application? - by El Forum - 09-14-2010, 12:33 PM
Separating Config Directory from Application? - by El Forum - 09-16-2010, 08:35 AM
Separating Config Directory from Application? - by El Forum - 09-16-2010, 01:55 PM
Separating Config Directory from Application? - by El Forum - 10-13-2010, 01:57 PM
Separating Config Directory from Application? - by El Forum - 10-13-2010, 02:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB