public function __construct($owner = null)
 {
     parent::__construct($owner);
     try {
         Yii::app()->db;
     } catch (Exception $e) {
         $this->_dbConnections = false;
     }
 }
 public function __construct($owner = null)
 {
     parent::__construct($owner);
     try {
         $cache = Yii::app()->cache;
         if (!$cache instanceof YiiDebugCacheProxy) {
             $this->_cache = false;
         }
     } catch (Exception $e) {
         $this->_cache = false;
     }
 }
 public function init()
 {
     parent::init();
     $this->_viewRenderer = Yii::app()->getComponent('viewRenderer');
 }