phpdotenv-for-codeigniter icon indicating copy to clipboard operation
phpdotenv-for-codeigniter copied to clipboard

ENVIRONMENT required. Needs fallback

Open petehalverson opened this issue 7 years ago • 2 comments

The ENVIRONMENT constant you're referencing ( https://github.com/agungjk/phpdotenv-for-codeigniter/blob/master/system/dotenv/Dotenv.php#L29) may not be defined. I think Dotenv should fall back to a standard .env if that's the case.

petehalverson avatar Dec 16 '17 22:12 petehalverson

I should mention I'm using this with a pretty old version of CodeIgniter (v1.7.3), maybe the ENVIRONMENT constant is defined as part of newer convention.

petehalverson avatar Dec 17 '17 04:12 petehalverson

@petehalverson sory for that, i didn't test on that version before just create a pull, i will merge this issue

agungjk avatar Feb 08 '18 06:02 agungjk