Welcome Guest, Not a member yet? Register   Sign In
Use hook to change config values
#1

[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
#2

[eluser]pistolPete[/eluser]
How about that?
switching between development production server
#3

[eluser]sheldonnbbaker[/eluser]
Perfect! Thank you! Smile




Theme © iAndrew 2016 - Forum software by © MyBB