Jump to content


carloscandreva

Member Since 04 Jun 2013
Offline Last Active Jun 24 2013 04:52 PM
-----

Topics I've Started

Question: How to make a dynamic switch database?

04 June 2013 - 02:03 PM

I have the following problem: I need alter dynamically some settings of the file database.php, I thought I'd build a function within the database.php to accomplish this from variables, but it did not work, the database.php does not accept this alteration, I'm a little lost :S, I need to set the hostname, database, user and password by a function based on a table of other database, so I have to enter into database1 see this settings and set into a second database configuration, how I will make this? There a way to do this?

 

 

Sorry about the bad english :(