/home/bigfoodb/public_html/framework/yiilite.php(8788)
8776 if(empty($this->connectionString)) 8777 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 8778 try 8779 { 8780 $this->_pdo=$this->createPdoInstance(); 8781 $this->initConnection($this->_pdo); 8782 $this->_active=true; 8783 } 8784 catch(PDOException $e) 8785 { 8786 if(YII_DEBUG) 8787 { 8788 throw new CDbException('CDbConnection failed to open the DB connection: '. 8789 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 8790 } 8791 else 8792 { 8793 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 8794 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 8795 } 8796 } 8797 } 8798 } 8799 protected function close() 8800 {
#0 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(8760): CDbConnection->open() 8755 public function setActive($value) 8756 { 8757 if($value!=$this->_active) 8758 { 8759 if($value) 8760 $this->open(); 8761 else 8762 $this->close(); 8763 } 8764 } 8765 public function cache($duration, $dependency=null, $queryCount=1) |
#1 |
+
–
/home/bigfoodb/public_html/framework/caching/CDbCache.php(78): CDbConnection->setActive(true) 73 public function init() 74 { 75 parent::init(); 76 77 $db=$this->getDbConnection(); 78 $db->setActive(true); 79 if($this->autoCreateCacheTable) 80 { 81 $sql="DELETE FROM {$this->cacheTableName} WHERE expire>0 AND expire<".time(); 82 try 83 { |
#2 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(1104): CDbCache->init() 1099 $config=$this->_componentConfig[$id]; 1100 if(!isset($config['enabled']) || $config['enabled']) 1101 { 1102 unset($config['enabled']); 1103 $component=Yii::createComponent($config); 1104 $component->init(); 1105 return $this->_components[$id]=$component; 1106 } 1107 } 1108 } 1109 public function setComponent($id,$component,$merge=true) |
#3 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(3150): CModule->getComponent("cache") 3145 } 3146 protected function processRules() 3147 { 3148 if(empty($this->rules) || $this->getUrlFormat()===self::GET_FORMAT) 3149 return; 3150 if($this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null) 3151 { 3152 $hash=md5(serialize($this->rules)); 3153 if(($data=$cache->get(self::CACHE_KEY))!==false && isset($data[1]) && $data[1]===$hash) 3154 { 3155 $this->_rules=$data[0]; |
#4 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(3144): CUrlManager->processRules() 3139 private $_rules=array(); 3140 private $_baseUrl; 3141 public function init() 3142 { 3143 parent::init(); 3144 $this->processRules(); 3145 } 3146 protected function processRules() 3147 { 3148 if(empty($this->rules) || $this->getUrlFormat()===self::GET_FORMAT) 3149 return; |
#5 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(1104): CUrlManager->init() 1099 $config=$this->_componentConfig[$id]; 1100 if(!isset($config['enabled']) || $config['enabled']) 1101 { 1102 unset($config['enabled']); 1103 $component=Yii::createComponent($config); 1104 $component->init(); 1105 return $this->_components[$id]=$component; 1106 } 1107 } 1108 } 1109 public function setComponent($id,$component,$merge=true) |
#6 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(1393): CModule->getComponent("urlManager") 1388 { 1389 return $this->getComponent('request'); 1390 } 1391 public function getUrlManager() 1392 { 1393 return $this->getComponent('urlManager'); 1394 } 1395 public function getFormat() 1396 { 1397 return $this->getComponent('format'); 1398 } |
#7 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(1716): CApplication->getUrlManager() 1711 $route=$this->catchAllRequest[0]; 1712 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1713 $_GET[$name]=$value; 1714 } 1715 else 1716 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1717 $this->runController($route); 1718 } 1719 protected function registerCoreComponents() 1720 { 1721 parent::registerCoreComponents(); |
#8 |
+
–
/home/bigfoodb/public_html/framework/yiilite.php(1236): CWebApplication->processRequest() 1231 public function run() 1232 { 1233 if($this->hasEventHandler('onBeginRequest')) 1234 $this->onBeginRequest(new CEvent($this)); 1235 register_shutdown_function(array($this,'end'),0,false); 1236 $this->processRequest(); 1237 if($this->hasEventHandler('onEndRequest')) 1238 $this->onEndRequest(new CEvent($this)); 1239 } 1240 public function end($status=0,$exit=true) 1241 { |
#9 |
+
–
/home/bigfoodb/public_html/index.php(17): CApplication->run() 12 13 // remove the following line when in production mode 14 defined('YII_DEBUG') or define('YII_DEBUG',true); 15 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); |