Exemple #1
0
 public function init()
 {
     parent::init();
 }
Exemple #2
0
 /**
  * Initializes the component.
  * This method is required by {@link IApplicationComponent} and is invoked by application
  * when the CDbConnection is used as an application component.
  * If you override this method, make sure to call the parent implementation
  * so that the component can be marked as initialized.
  */
 public function init()
 {
     parent::init();
     if ($this->auto_connect) {
         $this->setActive(true);
     }
 }