Welcome Guest, Not a member yet? Register   Sign In
make the config smart base on environment
#1

[eluser]newtonianb[/eluser]
I have several fields in config.php, database.php and constants.php that are different when i publish my site to server.
How can I make it smart and have it automatically pick the right one based on lets say hostname.


I tried if(strpos(base_url(),"localhost") === false)
but base_url() isn't working in these files, it actually seems to only work inside database.php

What else can I do?


Messages In This Thread
make the config smart base on environment - by El Forum - 12-24-2010, 06:51 PM
make the config smart base on environment - by El Forum - 12-24-2010, 08:03 PM
make the config smart base on environment - by El Forum - 12-24-2010, 08:10 PM
make the config smart base on environment - by El Forum - 12-24-2010, 08:20 PM
make the config smart base on environment - by El Forum - 12-24-2010, 08:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB