Welcome Guest, Not a member yet? Register   Sign In
Same Installation folder for different sites (config.php and database.php)
#3

If you can alter the server configuration to set a variable, you can always use:
Code:
SetEnv CI_ENV zone1
(obviously you'd want to set CI_ENV to zone2 in the other subdomain)

Of course, if you can't do that, you could still set the environment at the top of the index.php file using Rufnex' code to detect the subdomain.

Once the environment is set, you can just add 'zone1' and 'zone2' to the list of environments in your index.php (to get the error reporting setup correctly) and load your config files from /application/config/zone1/ and /application/config/zone2/.
Reply


Messages In This Thread
RE: Same Installation folder for different sites (config.php and database.php) - by mwhitney - 04-23-2015, 01:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB