/wwwroot/public_html/newultra/ultra/framework/db/CDbCommand.php(541)
529 { 530 if($this->_connection->enableProfiling) 531 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 532 533 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 534 $message=$e->getMessage(); 535 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 536 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 537 538 if(YII_DEBUG) 539 $message.='. The SQL statement executed was: '.$this->getText().$par; 540 541 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 542 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 543 } 544 } 545 546 /** 547 * Builds a SQL SELECT statement from the given query specification. 548 * @param array $query the query specification in name-value pairs. The following 549 * query options are supported: {@link select}, {@link distinct}, {@link from}, 550 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 551 * {@link limit}, {@link offset} and {@link union}. 552 * @return string the SQL statement 553 * @since 1.1.6
#0 |
+
–
/wwwroot/public_html/newultra/ultra/framework/db/CDbCommand.php(395): CDbCommand->queryInternal("fetchAll", array(2), array()) 390 * An empty array is returned if the query results in nothing. 391 * @throws CException execution failed 392 */ 393 public function queryAll($fetchAssociative=true,$params=array()) 394 { 395 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 396 } 397 398 /** 399 * Executes the SQL statement and returns the first row of the result. 400 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/wwwroot/public_html/newultra/ultra/framework/db/ar/CActiveFinder.php(761): CDbCommand->queryAll() 756 * @param CJoinQuery $query the query to be executed. 757 */ 758 public function runQuery($query) 759 { 760 $command=$query->createCommand($this->_builder); 761 foreach($command->queryAll() as $row) 762 $this->populateRecord($query,$row); 763 } 764 765 /** 766 * Populates the active records with the query data. |
#2 |
+
–
/wwwroot/public_html/newultra/ultra/framework/db/ar/CActiveFinder.php(489): CJoinElement->runQuery(CJoinQuery) 484 $this->_joined=true; 485 $child->_joined=true; 486 487 $this->_finder->baseLimited=false; 488 $child->buildQuery($query); 489 $child->runQuery($query); 490 foreach($child->children as $c) 491 $c->find(); 492 493 if(empty($child->records)) 494 return; |
#3 |
+
–
/wwwroot/public_html/newultra/ultra/framework/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind(Category) 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
#4 |
+
–
/wwwroot/public_html/newultra/ultra/framework/db/ar/CActiveRecord.php(272): CActiveFinder->lazyFind(Category) 267 else 268 $r=$name; 269 unset($this->_related[$name]); 270 271 $finder=new CActiveFinder($this,$r); 272 $finder->lazyFind($this); 273 274 if(!isset($this->_related[$name])) 275 { 276 if($relation instanceof CHasManyRelation) 277 $this->_related[$name]=array(); |
#5 |
+
–
/wwwroot/public_html/newultra/ultra/framework/db/ar/CActiveRecord.php(215): CActiveRecord->getRelated("projects", false, array("condition" => "active = 1 and hide_self = 0", "scopes" => array("lang"), "order" => "unix_timestamp( str_to_date( sdate, '%d-%m-%Y %H:%i' )) DESC ")) 210 if(isset($this->getMetaData()->relations[$name])) 211 { 212 if(empty($parameters)) 213 return $this->getRelated($name,false); 214 else 215 return $this->getRelated($name,false,$parameters[0]); 216 } 217 218 $scopes=$this->scopes(); 219 if(isset($scopes[$name])) 220 { |
#6 |
+
–
/wwwroot/public_html/newultra/ultra/frontend/protected/views/site/categorymore.php(21): CActiveRecord->__call("projects", array(array("condition" => "active = 1 and hide_self = 0", "scopes" => array("lang"), "order" => "unix_timestamp( str_to_date( sdate, '%d-%m-%Y %H:%i' )) DESC "))) 16 17 <p></p> 18 <ul class="timeline2 clearfix"> 19 <?php 20 if( count( $model ) > 0 ): 21 $cmodel = $model->projects(array('condition'=>'active = 1 and hide_self = 0', 'scopes' => array('lang'),'order'=>"unix_timestamp( str_to_date( sdate, '%d-%m-%Y %H:%i' )) DESC " )); 22 foreach( $cmodel as $c ): 23 ?> 24 <li class="item item-left "> 25 <?php if(empty($c->url)){?> 26 <a href="<?=$this->createUrl($type.'/'.$c->id)?>"><?=$c->{'title_'.Yii::app()->language}?></a> |
#7 |
+
–
/wwwroot/public_html/newultra/ultra/frontend/protected/views/site/categorymore.php(21): Category->projects(array("condition" => "active = 1 and hide_self = 0", "scopes" => array("lang"), "order" => "unix_timestamp( str_to_date( sdate, '%d-%m-%Y %H:%i' )) DESC ")) 16 17 <p></p> 18 <ul class="timeline2 clearfix"> 19 <?php 20 if( count( $model ) > 0 ): 21 $cmodel = $model->projects(array('condition'=>'active = 1 and hide_self = 0', 'scopes' => array('lang'),'order'=>"unix_timestamp( str_to_date( sdate, '%d-%m-%Y %H:%i' )) DESC " )); 22 foreach( $cmodel as $c ): 23 ?> 24 <li class="item item-left "> 25 <?php if(empty($c->url)){?> 26 <a href="<?=$this->createUrl($type.'/'.$c->id)?>"><?=$c->{'title_'.Yii::app()->language}?></a> |
#8 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CBaseController.php(126): require("/wwwroot/public_html/newultra/ultra/frontend/protected/views/sit...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#9 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CBaseController.php(95): CBaseController->renderInternal("/wwwroot/public_html/newultra/ultra/frontend/protected/views/sit...", array("model" => Category, "type" => "solserv"), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#10 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CController.php(869): CBaseController->renderFile("/wwwroot/public_html/newultra/ultra/frontend/protected/views/sit...", array("model" => Category, "type" => "solserv"), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#11 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CController.php(782): CController->renderPartial("categorymore", array("model" => Category, "type" => "solserv"), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#12 |
+
–
/wwwroot/public_html/newultra/ultra/frontend/protected/controllers/SiteController.php(383): CController->render("categorymore", array("model" => Category, "type" => "solserv")) 378 $model = Category::model()->lang('name')->findByPk((int)$id, array('condition'=>'type = '.$tid)); 379 380 if( count($model) <= 0 ) 381 throw new CHttpException(404,'The requested page does not exist.'); 382 383 $this->render('categorymore', array('model'=>$model, 'type'=>$type)); 384 } 385 386 public function actionMprojects($id) 387 { 388 $model = Projects::model()->findByPk((int)$id, array('condition'=>'active = 1 and type = 0')); |
#13 |
unknown(0): SiteController->actionMcategory("18", "solserv")
|
#14 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(SiteController, array("18", "solserv")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#15 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("lang" => "az", "type" => "solserv", "id" => "18")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#16 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CController.php(308): CInlineAction->runWithParams(array("lang" => "az", "type" => "solserv", "id" => "18")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#17 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#18 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#19 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CWebApplication.php(282): CController->run("mcategory") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#20 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CWebApplication.php(141): CWebApplication->runController("site/mcategory") 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. 146 * This method overrides the parent implementation by registering additional core components. |
#21 |
+
–
/wwwroot/public_html/newultra/ultra/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#22 |
+
–
/wwwroot/public_html/newultra/www/front/index.php(35): CApplication->run() 30 /** url defines */ 31 32 define('DEFAULTURL', '/menus/index', true); 33 34 require_once($yii); 35 Yii::createWebApplication($config)->run(); |