Welcome Guest, Not a member yet? Register   Sign In
Why vars to constants in index.php?
#3

[eluser]JCianflone[/eluser]
Hmm...maybe...but just look at the $system_path var for one second. The only place that is used is in the index.php file. By the time you get to the end of that file, that var is placed in BASEPATH and you'll never use or need $system_path again. The same goes for the APPPATH and $application_folder. I think if you had multiple websites pointing to the same front controller, you could just as easily set that up using a constant.


Messages In This Thread
Why vars to constants in index.php? - by El Forum - 01-27-2011, 04:49 PM
Why vars to constants in index.php? - by El Forum - 01-27-2011, 04:55 PM
Why vars to constants in index.php? - by El Forum - 01-27-2011, 05:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB