I'm in the beginning stages of building a very large application and I'm at a cross-roads.
Do I create an include file that uses define() to define a plethora of constants for all vars used application-wide allowing me to reference them like this:
echo "This is something and " . SOME_VALUE . "<br />";
OR
Do I create a class, instantiated by the core class that houses all of the variables, allowing me to reference them like this:
echo "This is something and {$this->main->coreVariables->someValue}<br />";
I want opinions from the experts on performance, tidy-ness, best practice, etc.
I'm fully torn and on the fence at this point. There are pros and cons for both methods and I need some input.
Thanks guys.