/var/www/hosts/framework/db/CDbCommand.php(548)
536 { 537 if($this->_connection->enableProfiling) 538 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 539 540 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 541 $message=$e->getMessage(); 542 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 543 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 544 545 if(YII_DEBUG) 546 $message.='. The SQL statement executed was: '.$this->getText().$par; 547 548 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 549 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 550 } 551 } 552 553 /** 554 * Builds a SQL SELECT statement from the given query specification. 555 * @param array $query the query specification in name-value pairs. The following 556 * query options are supported: {@link select}, {@link distinct}, {@link from}, 557 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 558 * {@link limit}, {@link offset} and {@link union}. 559 * @throws CDbException if "from" key is not present in given query parameter 560 * @return string the SQL statement
#0 |
+
–
/var/www/hosts/framework/db/CDbCommand.php(420): CDbCommand->queryInternal() 415 * @return mixed the first row (in terms of an array) of the query result, false if no result. 416 * @throws CException execution failed 417 */ 418 public function queryRow($fetchAssociative=true,$params=array()) 419 { 420 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 421 } 422 423 /** 424 * Executes the SQL statement and returns the value of the first column in the first row of data. 425 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/navigator/components/NavigatorUrlRule.php(164): CDbCommand->queryRow() 159 $dataArr = array( 160 $page_step, 161 $page_pid, 162 163 ); 164 $temp_row = $command->queryRow(true,$dataArr); 165 166 if ( $temp_row === false) { 167 //todo вернуть параметры для экшена 168 break; 169 } |
#2 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/navigator/components/NavigatorUrlRule.php(64): NavigatorUrlRule->find_by_path() 59 $last_item = $_req[count($_req) - 1]; 60 61 if(is_numeric($last_item)) { 62 $action_param = $last_item; 63 } 64 $result = $this->find_by_path($REQ); 65 //назначить page_id 66 67 if($result && $result['page_id']) { 68 69 $CModuleNavigator->setCurrentPageId($result['page_id']); |
#3 |
+
–
/var/www/hosts/framework/web/CUrlManager.php(370): NavigatorUrlRule->parseUrl() 365 $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix); 366 foreach($this->_rules as $i=>$rule) 367 { 368 if(is_array($rule)) 369 $this->_rules[$i]=$rule=Yii::createComponent($rule); 370 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false) 371 return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r; 372 } 373 if($this->useStrictParsing) 374 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 375 array('{route}'=>$pathInfo))); |
#4 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(140): CUrlManager->parseUrl() 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. |
#5 |
+
–
/var/www/hosts/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#6 |
+
–
/var/www/hosts/lk.usoft.ru/index.php(58): CApplication->run() 53 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates'); 54 Yii::setPathOfAlias('core',INDEX_DIR.DIRECTORY_SEPARATOR.'core'); 55 require_once(__DIR__.DIRECTORY_SEPARATOR.'protected' .DIRECTORY_SEPARATOR.'vendors' .DIRECTORY_SEPARATOR.'Loader.php'); 56 Yii::registerAutoloader(array('Loader','systemMainAutoload')); 57 58 Yii::createWebApplication($config_yii_path)->run(); |