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