Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread Mark aka drecaise
I'm trying to add a database config and use it after init. It's for an application that numerous clients will use. Each with it's own database. During login a master database is queried for a users corresponding company database and the application should switch to that database. Is this

Re: Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread Chris Hartjes
On 6/19/07, Mark aka drecaise [EMAIL PROTECTED] wrote: I'm trying to add a database config and use it after init. It's for an application that numerous clients will use. Each with it's own database. During login a master database is queried for a users corresponding company database and the

Re: Dynamic database switching in cakephp 1.1.x

2007-06-19 Thread rtconner
Hey Mark, So I'm pretty sure some of the functions I used are specific to 1.2. But you can try. I'll give you a basic overview of what I did. I made a componant, and inside the componant in the initialize method.. I do this: (all the connection data is stored in a Client Model, that I load with