Re: Use other database connection
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 <bryandea...@gmail.com> 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 cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cake-php?hl=.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home