Welcome Guest, Not a member yet? Register   Sign In
Gathering database settings globally
#1

[eluser]CrazeD[/eluser]
How can I gather database information globally, instead of on every controller function?

I am working on a project that will have multiple themes. Each user will be able to choose which theme they want to use. Their choice will be recorded in my users MySQL table.

I don't really want to copy/paste the same SQL query 30 times throughout all of my controllers, so is there a way to just do it once and have the variables handy when I need them?

Thanks.


Messages In This Thread
Gathering database settings globally - by El Forum - 09-30-2010, 07:03 PM
Gathering database settings globally - by El Forum - 09-30-2010, 08:16 PM
Gathering database settings globally - by El Forum - 09-30-2010, 08:34 PM
Gathering database settings globally - by El Forum - 09-30-2010, 09:54 PM
Gathering database settings globally - by El Forum - 09-30-2010, 10:18 PM
Gathering database settings globally - by El Forum - 10-01-2010, 12:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB