Welcome Guest, Not a member yet? Register   Sign In
$_SERVER['CI_ENV'] -- where is and ENVIRONMENT this set?
#2

It depends on what webserver you're using. If it's apache, you can place it in the main apache.conf, or the conf for your vhost.
http://httpd.apache.org/docs/2.2/env.html#setting

As far as where ENVIRONMENT is set, there's only one place and that's in the main index.php file. Everywhere else you check for (example)
if (ENVIRONMENT == 'production')
if (ENVIRONMENT == 'development')
etc
Reply


Messages In This Thread
RE: $_SERVER['CI_ENV'] -- where is and ENVIRONMENT this set? - by CroNiX - 06-10-2015, 02:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB