Welcome Guest, Not a member yet? Register   Sign In
How to change the ENVIRONMENT type
#1

When open the index.php file to change the ENVIRONMENT type I have found the following:

PHP Code:
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development'); 

In the previous CI version was as the following:

PHP Code:
define('ENVIRONMENT''development'); 

And I could change the environment by replace "development" word to ("production" or "testing").

How can I do that in CI 3 ?
Reply


Messages In This Thread
How to change the ENVIRONMENT type - by lionking - 03-31-2015, 06:37 AM
RE: How to change the ENVIRONMENT type - by Narf - 03-31-2015, 06:41 AM
RE: How to change the ENVIRONMENT type - by Narf - 03-31-2015, 08:33 AM
RE: How to change the ENVIRONMENT type - by alenn - 04-05-2015, 11:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB