Category: Frameworks

Posted by admin
May 17, 2010

5 Comments

Using multiple database connections with Yii framework

There may be occasions where you will need to set up database connections to more than one database. This guide will show you the easy way to set up these resources. In your main.php config file, you may already have a db component set up by default. //.. main.php ‘db’=>array( ‘connectionString’ => ‘mysql:host=localhost;dbname=testdrive’, ‘emulatePrepare’ => [...]