why won't CI pick up my new config file? |
[eluser]bill19[/eluser]
Hi everyone, I am trying to modify my program to detect the environment it is in and load configuration files accordingly. in my index.php file I have placed Code: define('ENVIRONMENT', isset($_SERVER['SERVER_NAME'])=='my/production/server.com' ? 'production' : 'development'); I have placed a new folder called production, in application/config. I have placed the database settings for my production server inside this in database.php: Code: $active_group = 'default'; It looks to me that the program is looking for or loading the other database.php file which is for the local wamp and which is in application/config. Any idea why its not loading the right file? Thanks in advance, Bill
[eluser]wiredesignz[/eluser]
isset() returns TRUE if var exists and has value other than NULL, FALSE otherwise. http://php.net/manual/en/function.isset.php |
Welcome Guest, Not a member yet? Register Sign In |