Multiple DB in cakePHP

Posted by Jun on October 4, 2010

In order to dynamically select DB during runtime in cakePHP is try to do it in Controller or in Model.To do it in model:class User extends AppModel { var $name = 'User'; var $useDbConfig = 'general_syst'; function __construct($id = false, $table = null, $ds = null) { $this-useDbConfig = 'db1'; ... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.