Gwoo's response is just what you need to set the dbconfig from a controller based on params. If you just mean based on the URL (dev vs prod) then I would like to add the following resource.
http://edwardawebb.com/programming/php-programming/cakephp/automatically-choose-database-connections-cakephp On Mar 16, 6:25 pm, Gwoo <gwoo.cake...@gmail.com> wrote: > http://api.cakephp.org/class/model#method-ModelsetDataSource --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---