Welcome Guest, Not a member yet? Register   Sign In
Best place to put AKA reading database from the config file..
#4

[eluser]jedd[/eluser]
[quote author="Narkboy" date="1239798997"]Yeah - basically.

The Config Site will allow options to be set to the db which will govern each Public Site.

Really, what I'm wondering is - in each Public Site, how early in the CI process can I place a database call to confirm settings from the db?[/quote]

Okay .. my preference is to [url="http://ellislab.com/codeigniter/user-guide/general/core_classes.html"]extend the core controller class[/url] - it's a bit of a panacea for many CI users.

Others suggest [url="http://ellislab.com/codeigniter/user-guide/general/hooks.html"]hooks[/url] , though I've yet to use them.

I think the question is better formulated as 'where in my logic do I need to know this answer', rather than where in the CI process. It's possible that the best place to determine what to do is outside of the public server box.


Messages In This Thread
Best place to put AKA reading database from the config file.. - by El Forum - 04-15-2009, 06:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB