Use hook to change config values |
[eluser]sheldonnbbaker[/eluser]
I'd like to make a portable script to include with all my CodeIgniter projects (hence the preferred use of a single hook) which determines if the website is in a local environment (i.e., http://localhost/) a test environment (i.e., http://mytestserver.com/), or a live environment (i.e., http://mycompletedcodeigniterproject.com/). I'd like to be able to access and change the database configuration variables (hostname, username, password, database, etc.). I have a hook developed but I don't know how to access the database configuration variables. Is this possible (or is there a better way)? Thanks
|
Welcome Guest, Not a member yet? Register Sign In |