/var/yii/framework/db/CDbCommand.php(358)
346 { 347 if($this->_connection->enableProfiling) 348 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute'); 349 350 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 351 $message=$e->getMessage(); 352 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 353 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 354 355 if(YII_DEBUG) 356 $message.='. The SQL statement executed was: '.$this->getText().$par; 357 358 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 359 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 360 } 361 } 362 363 /** 364 * Executes the SQL statement and returns query result. 365 * This method is for executing an SQL query that returns result set. 366 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 367 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 368 * them in this way can improve the performance. Note that if you pass parameters in this way, 369 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 370 * Please also note that all values are treated as strings in this case, if you need them to be handled as
#0 |
+
–
/var/yii/framework/caching/CDbCache.php(139): CDbCommand->execute() 134 id CHAR(128) PRIMARY KEY, 135 expire INTEGER, 136 value $blob 137 ) 138 EOD; 139 $db->createCommand($sql)->execute(); 140 } 141 142 /** 143 * @return CDbConnection the DB connection instance 144 * @throws CException if {@link connectionID} does not point to a valid application component. |
#1 |
+
–
/var/yii/framework/caching/CDbCache.php(88): CDbCache->createCacheTable(CDbConnection, "YiiCache") 83 { 84 $db->createCommand($sql)->execute(); 85 } 86 catch(Exception $e) 87 { 88 $this->createCacheTable($db,$this->cacheTableName); 89 } 90 } 91 } 92 93 /** |
#2 |
+
–
/var/yii/framework/base/CModule.php(394): CDbCache->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/var/yii/framework/web/CUrlManager.php(216): CModule->getComponent("cache") 211 */ 212 protected function processRules() 213 { 214 if(empty($this->rules) || $this->getUrlFormat()===self::GET_FORMAT) 215 return; 216 if($this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null) 217 { 218 $hash=md5(serialize($this->rules)); 219 if(($data=$cache->get(self::CACHE_KEY))!==false && isset($data[1]) && $data[1]===$hash) 220 { 221 $this->_rules=$data[0]; |
#4 |
+
–
/var/yii/framework/web/CUrlManager.php(206): CUrlManager->processRules() 201 * Initializes the application component. 202 */ 203 public function init() 204 { 205 parent::init(); 206 $this->processRules(); 207 } 208 209 /** 210 * Processes the URL rules. 211 */ |
#5 |
+
–
/var/yii/framework/base/CModule.php(394): CUrlManager->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#6 |
+
–
/var/yii/framework/base/CApplication.php(530): CModule->getComponent("urlManager") 525 * Returns the URL manager component. 526 * @return CUrlManager the URL manager component 527 */ 528 public function getUrlManager() 529 { 530 return $this->getComponent('urlManager'); 531 } 532 533 /** 534 * @return CController the currently active controller. Null is returned in this base class. 535 * @since 1.1.8 |
#7 |
+
–
/var/yii/framework/web/CWebApplication.php(140): CApplication->getUrlManager() 135 $route=$this->catchAllRequest[0]; 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. |
#8 |
+
–
/var/yii/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#9 |
+
–
/var/www/index.php(21): CApplication->run() 16 defined('YII_DEBUG') or define('YII_DEBUG',true); 17 // specify how many levels of call stack should be shown in each log message 18 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',1); 19 20 require_once($yii); 21 Yii::createWebApplication($config)->run(); 22 |