By default each codeigniter app has defined environment in the ci.php :
define('ENVIRONMENT', 'development');
I need to switch between different countries in my app, and each country has it`s own configuration and database. So I tried to create folder for each country in the 'config' folder and place there all the needed configs. Then I want to select country from a dropdown and switch the environment. Tried like this:
define('ENVIRONMENT', 'mexico');
but this raises error:
Message: Constant ENVIRONMENT already defined
How can I do this ?