Multiple Database


I am developing an application that uses two databases (a database shared between all customer and another specific database for each customer), the customer must select the second database in the authentication page.

In this exemple the second database will be dynamic.

Thank you!

Maybe the multiactiverecord fits your needs? :)

I want to select the database in the authentication page. how do?

Try create 2 links to different actions(and models) in Your SiteControler

Two leads:

  1. Try and read the documentation for the extension I linked to.

  2. You are not choosing the database, the user is doing that. So you don’t know what it is until the form has been submitted.