Welcome Guest, Not a member yet? Register   Sign In
config items versus constants, seeking clarification.
#4

[eluser]skunkbad[/eluser]
[quote author="nuwanda" date="1291120844"][quote author="skunkbad" date="1291117792"]I define constants in hooks so that I can use them before config items are set. I use config items when they are specifically related to some library or code, to help keep things organized.[/quote]

Just out of interest, what exactly are you using your hooks for?[/quote]

I have a hook that sets up $_SESSION, and another for a custom error handler. I also have one that sets the X-Powered-By header.


Messages In This Thread
config items versus constants, seeking clarification. - by El Forum - 11-29-2010, 11:45 PM
config items versus constants, seeking clarification. - by El Forum - 11-29-2010, 11:49 PM
config items versus constants, seeking clarification. - by El Forum - 11-30-2010, 12:40 AM
config items versus constants, seeking clarification. - by El Forum - 11-30-2010, 09:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB