Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14346

Make definitions safer

$
0
0
In the index, there is `define("ENVIRONMENT", ....)`
However, for my case, and I guess a general case, the first line of the index loads a config file.
For me, that config file the ENVIRONMENT definition, so the index throws an error.

Solution:
Add to index:
if(!defined("ENVIRONMENT"))

Viewing all articles
Browse latest Browse all 14346

Trending Articles