Welcome Guest, Not a member yet? Register   Sign In
Make definitions safer
#1

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"))
Reply


Messages In This Thread
Make definitions safer - by AmitMY - 10-18-2016, 10:50 AM
RE: Make definitions safer - by ciadmin - 10-18-2016, 11:56 AM
RE: Make definitions safer - by AmitMY - 10-20-2016, 02:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB