You use... var $useDbConfig = ‘whatever’; (where 'whatever' is an entry in the database config file found at app/config/database.php)
...in a model. Not sure about a controller. On Nov 19, 2:47 pm, lordojazz <[email protected]> wrote: > Is it possible to use other database and setting it on controller? > let say replacing dynamically the values of the default database > connection on the DATABASE_CONFIG. > > Thanks -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.
