Re: Setting the database definition based on session values

2008-09-22 Thread Klesus
Hi Bruce, I want to do exactly the same than you. I have 4 db, 1 how contain the other DB name and the 3 other db have the same shema. I check with a prefix in the url if it corespond to a existing client name in the first DB and then I want to change the default database. I tried to do that : f

Re: Setting the database definition based on session values

2008-08-18 Thread Bruce
OK, I have tried things out on a very simple app, and have the database switching working from a constructor in app_model. But I am back to my initial problem of needing a way to direct the logic from the controller somehow. What I am intending to do is to access a family of controllers through a