Saturday, March 24, 2012

second database connection in Yii


/opt/lampp/htdocs/projectmanager/protected/config/main.php








































now to use the second database conenction.. we'll put a function inside the controller

/opt/lampp/htdocs/projectmanager/protected/compents/Controller.php

inside the Controller class
class Controller extends CController



public function init()
{
$this->writeToLog('Object Initialization');
}




About

Blogger templates