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

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.

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')

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