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');
}




2 comments:

  1. Nice tutorial. It is great to see someone publishing quality content on Yii. We have been working on an open source CRM application that is written in PHP utilizing JQuery, Yii, and RedBeanPHP and relies heavily on test driven development.

    Zurmo might be one of the most complex projects on Yii to date. Right now, we have 1000+ unit tests running across eight server configurations. We utilize selenium as well for a nice set of functional tests too. It would be incredibly helpful to get your technical feedback and recommendations so that we can improve the application. Take a look and let me know what you think: http://zurmo.org

    ReplyDelete
  2. i love the documentation http://zurmo.org/wiki/linux-installation-instructions-for-development.. havent gone deep inside zurmo.

    @jerome nice info on the second db conn, didnt know yii its possible. :)

    ReplyDelete

About

Blogger templates