/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/db/CDbCommand.php(516)
504 return $result; 505 } 506 catch(Exception $e) 507 { 508 if($this->_connection->enableProfiling) 509 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 510 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 511 $message = $e->getMessage(); 512 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 513 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 514 if(YII_DEBUG) 515 $message .= '. The SQL statement executed was: '.$this->getText().$par; 516 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 517 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 518 } 519 } 520 521 /** 522 * Builds a SQL SELECT statement from the given query specification. 523 * @param array $query the query specification in name-value pairs. The following 524 * query options are supported: {@link select}, {@link distinct}, {@link from}, 525 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 526 * {@link limit}, {@link offset} and {@link union}. 527 * @return string the SQL statement 528 * @since 1.1.6
#0 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/db/CDbCommand.php(374): CDbCommand->queryInternal("fetchAll", array(2), array()) 369 * An empty array is returned if the query results in nothing. 370 * @throws CException execution failed 371 */ 372 public function queryAll($fetchAssociative=true,$params=array()) 373 { 374 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 375 } 376 377 /** 378 * Executes the SQL statement and returns the first row of the result. 379 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/db/ar/CActiveRecord.php(1290): CDbCommand->queryAll() 1285 if(empty($criteria->with)) 1286 { 1287 if(!$all) 1288 $criteria->limit=1; 1289 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1290 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1291 } 1292 else 1293 { 1294 $finder=new CActiveFinder($this,$criteria->with); 1295 return $finder->query($criteria,$all); |
#2 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/db/ar/CActiveRecord.php(1410): CActiveRecord->query(CDbCriteria, true) 1405 */ 1406 public function findAll($condition='',$params=array()) 1407 { 1408 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1409 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1410 return $this->query($criteria,true); 1411 } 1412 1413 /** 1414 * Finds a single active record with the specified primary key. 1415 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/home/u958/dfkirov.ru/WWW/themes/main/views/modules/cms/cms/sendrequest.php(27): CActiveRecord->findAll("type = 1 AND lft > AND rgt < ") 22 ?> 23 24 <div class="row"><br/> 25 <?php echo $form->labelEx($model, 'festival'); ?><br/> 26 <?php $fest = Cms::model()->findByPk(1739); ?> 27 <?php echo $form->dropDownList($model, 'festival', CHtml::listData(Cms::model()->findAll("type = 1 AND lft > {$fest->lft} AND rgt < {$fest->rgt}"), 'name', 'name')); ?> 28 <?php echo $form->error($model, 'festival'); ?> 29 </div> 30 31 <div class="row"><br/> 32 <?php echo $form->labelEx($model, 'collective_name'); ?><br/> |
#4 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CBaseController.php(119): require("/home/u958/dfkirov.ru/WWW/themes/main/views/modules/cms/cms/send...") 114 $data=$_data_; 115 if($_return_) 116 { 117 ob_start(); 118 ob_implicit_flush(false); 119 require($_viewFile_); 120 return ob_get_clean(); 121 } 122 else 123 require($_viewFile_); 124 } |
#5 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CBaseController.php(88): CBaseController->renderInternal("/home/u958/dfkirov.ru/WWW/themes/main/views/modules/cms/cms/send...", null, true) 83 { 84 $widgetCount=count($this->_widgetStack); 85 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 86 $content=$renderer->renderFile($this,$viewFile,$data,$return); 87 else 88 $content=$this->renderInternal($viewFile,$data,$return); 89 if(count($this->_widgetStack)===$widgetCount) 90 return $content; 91 else 92 { 93 $widget=end($this->_widgetStack); |
#6 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CController.php(866): CBaseController->renderFile("/home/u958/dfkirov.ru/WWW/themes/main/views/modules/cms/cms/send...", null, true) 861 */ 862 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 863 { 864 if(($viewFile=$this->getViewFile($view))!==false) 865 { 866 $output=$this->renderFile($viewFile,$data,true); 867 if($processOutput) 868 $output=$this->processOutput($output); 869 if($return) 870 return $output; 871 else |
#7 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CController.php(779): CController->renderPartial("sendrequest", null, true) 774 */ 775 public function render($view,$data=null,$return=false) 776 { 777 if($this->beforeRender($view)) 778 { 779 $output=$this->renderPartial($view,$data,true); 780 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 781 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 782 783 $this->afterRender($view,$output); 784 |
#8 |
+
–
/home/u958/dfkirov.ru/WWW/protected/modules/core/components/CoreController.php(69): CController->render("sendrequest", null, false) 64 } 65 66 if($return) 67 return parent::render($view, $data, $return); 68 else 69 parent::render($view, $data, $return); 70 } 71 } |
#9 |
+
–
/home/u958/dfkirov.ru/WWW/protected/modules/cms/controllers/CmsController.php(337): CoreController->render("sendrequest") 332 333 $this->redirect(Yii::app()->createUrl('cms/cms/success')); 334 } 335 } 336 337 $this->render('sendrequest'); 338 } 339 340 public function actionSendrequestcollective() 341 { 342 $this->pageTitle = 'Подать заявку на размещение коллектива'; |
#10 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/actions/CInlineAction.php(50): CmsController->actionSendrequest() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#11 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CController.php(300): CInlineAction->runWithParams(array("id" => "1905")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#12 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#13 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#14 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CWebApplication.php(277): CController->run("sendrequest") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#15 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/web/CWebApplication.php(136): CWebApplication->runController("cms/cms/sendrequest") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#16 |
+
–
/home/u958/dfkirov.ru/WWW/framework/yii-1.1.8/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#17 |
+
–
/home/u958/dfkirov.ru/WWW/index.php(15): CApplication->run() 10 11 require_once($yii); 12 13 //phpinfo(); 14 15 Yii::createWebApplication($config)->run(); |