/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/db/CDbCommand.php(528)
516 return $result; 517 } 518 catch(Exception $e) 519 { 520 if($this->_connection->enableProfiling) 521 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 522 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 523 $message = $e->getMessage(); 524 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 525 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 526 if(YII_DEBUG) 527 $message .= '. The SQL statement executed was: '.$this->getText().$par; 528 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 529 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 530 } 531 } 532 533 /** 534 * Builds a SQL SELECT statement from the given query specification. 535 * @param array $query the query specification in name-value pairs. The following 536 * query options are supported: {@link select}, {@link distinct}, {@link from}, 537 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 538 * {@link limit}, {@link offset} and {@link union}. 539 * @return string the SQL statement 540 * @since 1.1.6
#0 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/db/CDbCommand.php(390): CDbCommand->queryInternal("fetchAll", array(2), array()) 385 * An empty array is returned if the query results in nothing. 386 * @throws CException execution failed 387 */ 388 public function queryAll($fetchAssociative=true,$params=array()) 389 { 390 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 391 } 392 393 /** 394 * Executes the SQL statement and returns the first row of the result. 395 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/themes/RadioTP/views/post/show.php(21): CDbCommand->queryAll() 16 ->from('post') 17 ->where(array('and', 'type='.$_GET['type'], 'status=2')) 18 ->order('update_time DESC') 19 ->limit('6') 20 ->offset('3') 21 ->queryAll(); 22 foreach($images as $row) { 23 echo "<div class='archive'>".CHtml::link(CHtml::encode("# ".$row['title']), 'post/view?id='.$row['id'])."</div>"; 24 } 25 ?> 26 </div><br /> |
#2 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CBaseController.php(127): require("/var/www/vhosts/radiotp.pl/httpdocs/themes/RadioTP/views/post/sh...") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
#3 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CBaseController.php(96): CBaseController->renderInternal("/var/www/vhosts/radiotp.pl/httpdocs/themes/RadioTP/views/post/sh...", array("dataProvider" => CActiveDataProvider), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
#4 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CController.php(870): CBaseController->renderFile("/var/www/vhosts/radiotp.pl/httpdocs/themes/RadioTP/views/post/sh...", array("dataProvider" => CActiveDataProvider), true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
#5 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/protected/controllers/PostController.php(84): CController->renderPartial("show", array("dataProvider" => CActiveDataProvider)) 79 'dataProvider'=>$dataProvider, 80 )); 81 }else{ 82 $this->renderPartial('show',array( 83 'dataProvider'=>$dataProvider, 84 )); 85 } 86 87 88 } 89 |
#6 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/actions/CInlineAction.php(50): PostController->actionShow() 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 } |
#7 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CController.php(309): CInlineAction->runWithParams(array("id" => "332", "type" => "post", "view" => "")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#8 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#9 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#10 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/protected/modules/rights/components/RController.php(36): CFilter->filter(CFilterChain) 31 */ 32 public function filterRights($filterChain) 33 { 34 $filter = new RightsFilter; 35 $filter->allowedActions = $this->allowedActions(); 36 $filter->filter($filterChain); 37 } 38 39 /** 40 * @return string the actions that are always allowed separated by commas. 41 */ |
#11 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/filters/CInlineFilter.php(59): RController->filterRights(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#12 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#13 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CController.php(292): CFilterChain->run() 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); 293 $this->_action=$priorAction; 294 } 295 } 296 297 /** |
#14 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array("updateOwn + update", "rights")) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#15 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CWebApplication.php(276): CController->run("show") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#16 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/web/CWebApplication.php(135): CWebApplication->runController("post/show/type/post/view") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#17 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/yii/framework2/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#18 |
+
–
/var/www/vhosts/radiotp.pl/httpdocs/index.php(19): CApplication->run() 14 error_reporting(E_ALL & ~(E_STRICT|E_NOTICE)); 15 ini_set("display_errors", 1); 16 ini_set("apc.cache_by_default", 0); 17 } 18 require_once($yii); 19 Yii::createWebApplication($config)->run(); |