I've got what i'm looking for. Thanks TurboDog

http://beyondthewheel.com/dynamic-database-connection-with-cakephp/

it is a good source.

Thanks again


On Nov 19, 10:07 am, jburns <[email protected]> wrote:
> 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=.


Reply via email to