/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/CActiveRecord.php(1297): CDbCommand->queryAll() 1292 if(empty($criteria->with)) 1293 { 1294 if(!$all) 1295 $criteria->limit=1; 1296 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1297 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1298 } 1299 else 1300 { 1301 $finder=new CActiveFinder($this,$criteria->with); 1302 return $finder->query($criteria,$all); |
#2 |
+
–
/wwwroot/public_html/newultra/ultra/framework/db/ar/CActiveRecord.php(1416): CActiveRecord->query(CDbCriteria, true) 1411 */ 1412 public function findAll($condition='',$params=array()) 1413 { 1414 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1415 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1416 return $this->query($criteria,true); 1417 } 1418 1419 /** 1420 * Finds a single active record with the specified primary key. 1421 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CActiveDataProvider.php(150): CActiveRecord->findAll(CDbCriteria) 145 $this->model->setDbCriteria($criteria); 146 $sort->applyOrder($criteria); 147 } 148 149 $this->model->setDbCriteria($baseCriteria!==null ? clone $baseCriteria : null); 150 $data=$this->model->findAll($criteria); 151 $this->model->setDbCriteria($baseCriteria); // restore original criteria 152 return $data; 153 } 154 155 /** |
#4 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CDataProvider.php(168): CActiveDataProvider->fetchData() 163 * @return array the list of data items currently available in this data provider. 164 */ 165 public function getData($refresh=false) 166 { 167 if($this->_data===null || $refresh) 168 $this->_data=$this->fetchData(); 169 return $this->_data; 170 } 171 172 /** 173 * Sets the data items for this provider. |
#5 |
+
–
/wwwroot/public_html/newultra/ultra/framework/zii/widgets/CBaseListView.php(107): CDataProvider->getData() 102 public function init() 103 { 104 if($this->dataProvider===null) 105 throw new CException(Yii::t('zii','The "dataProvider" property cannot be empty.')); 106 107 $this->dataProvider->getData(); 108 109 $this->htmlOptions['id']=$this->getId(); 110 111 if($this->enableSorting && $this->dataProvider->getSort()===false) 112 $this->enableSorting=false; |
#6 |
+
–
/wwwroot/public_html/newultra/ultra/framework/zii/widgets/CListView.php(203): CBaseListView->init() 198 */ 199 public function init() 200 { 201 if($this->itemView===null) 202 throw new CException(Yii::t('zii','The property "itemView" cannot be empty.')); 203 parent::init(); 204 205 if(!isset($this->htmlOptions['class'])) 206 $this->htmlOptions['class']='list-view'; 207 208 if($this->baseScriptUrl===null) |
#7 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CBaseController.php(147): CListView->init() 142 * @return CWidget the fully initialized widget instance. 143 */ 144 public function createWidget($className,$properties=array()) 145 { 146 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 147 $widget->init(); 148 return $widget; 149 } 150 151 /** 152 * Creates a widget and executes it. |
#8 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CBaseController.php(172): CBaseController->createWidget("zii.widgets.CListView", array("ajaxUpdate" => true, "dataProvider" => CActiveDataProvider, "itemView" => "_news", "summaryText" => false, ...)) 167 $widget->run(); 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 |
#9 |
+
–
/wwwroot/public_html/newultra/ultra/frontend/protected/views/site/news.php(27): CBaseController->widget("zii.widgets.CListView", array("ajaxUpdate" => true, "dataProvider" => CActiveDataProvider, "itemView" => "_news", "summaryText" => false, ...)) 22 'pager' => array( 23 'header'=>'', 24 'cssFile'=>Yii::app()->getBaseUrl(true).'/css/pager.css', 25 'maxButtonCount'=>'7', 26 ), 27 )); 28 ?> 29 30 </main> |
#10 |
+
–
/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 } |
#11 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CBaseController.php(95): CBaseController->renderInternal("/wwwroot/public_html/newultra/ultra/frontend/protected/views/sit...", array("model" => CActiveDataProvider), 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); |
#12 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CController.php(869): CBaseController->renderFile("/wwwroot/public_html/newultra/ultra/frontend/protected/views/sit...", array("model" => CActiveDataProvider), 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 |
#13 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/CController.php(782): CController->renderPartial("news", array("model" => CActiveDataProvider), 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 |
#14 |
+
–
/wwwroot/public_html/newultra/ultra/frontend/protected/controllers/SiteController.php(280): CController->render("news", array("model" => CActiveDataProvider)) 275 'params' => array(), 276 'pageVar'=>'page' 277 ), 278 )); 279 280 $this->render('news', array('model'=>$model)); 281 } 282 283 284 285 |
#15 |
+
–
/wwwroot/public_html/newultra/ultra/framework/web/actions/CInlineAction.php(49): SiteController->actionNews() 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" => "en", "page" => "2")) 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("news") 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/news") 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(); |