Welcome Guest, Not a member yet? Register   Sign In
Global Variables from database
#4

[eluser]Rick Jolly[/eluser]
Just wanted to expand on what tonanbarbarian wrote. Setting/overwriting config variables is a good idea. Of course you'd want to do it in one place instead of in every controller. Maybe you could do it right in config.php, but I'd use inheritance and set the config variables in the constructor of your parent controller and have all controllers extend that common parent.


Messages In This Thread
Global Variables from database - by El Forum - 01-11-2008, 12:03 PM
Global Variables from database - by El Forum - 01-11-2008, 02:15 PM
Global Variables from database - by El Forum - 01-11-2008, 03:17 PM
Global Variables from database - by El Forum - 01-11-2008, 05:32 PM
Global Variables from database - by El Forum - 01-12-2008, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB