Improvement for ENVIRONMENT definition |
Hi,
I am running CI 3.0.2 on a shared host server. I've defined CI_SERV in .htacces, like this: Code: SetEnv CI_ENV "testing" So I would suggest the following modification in index.php (line 56) for next CI versions: Code: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : (isset($_SERVER['REDIRECT_CI_ENV'])?$_SERVER['REDIRECT_CI_ENV']:'development')); Cheers, L@u
From http://stackoverflow.com/questions/30504...hat-causes
Quote:Adding the following to the start of the rewrite rules recreates the original ENV:VAR on each redirect (as well as leaving the REDIRECT_VAR versions there) if they're needed: |
Welcome Guest, Not a member yet? Register Sign In |