CHttpException

/base/app/www/protected/modules/www/controllers/BlogController.php(116)

104      * @throws CException
105      * @throws CHttpException
106      */
107     public function actionOverView() {
108         try {
109             $command = new CommandGetBlogOverview([
110 
111             ]);
112             $command->execute();
113             $lastOverview = $command->getModel();
114         }
115         catch (ModelException $e){
116             throw new CHttpException('Страница не найдена');
117         }
118 
119         if (!$lastOverview){
120             throw new CHttpException('Страница не найдена');
121         }
122         $this->actionSingle($lastOverview->id);
123     }
124     /**
125      * blog/[id]
126      * @param $id
127      * @throws CException
128      */

Stack Trace

#0
+
 /base/app/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): BlogController->actionOverView()
44         $controller=$this->getController();
45         $method=new ReflectionMethod($controller, $methodName);
46         if($method->getNumberOfParameters()>0)
47             return $this->runWithParamsInternal($controller, $method, $params);
48 
49         $controller->$methodName();
50         return true;
51     }
52 }
#1
+
 /base/app/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array())
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;
#2
+
 /base/app/vendor/yiisoft/yii/framework/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 }
2024-12-26 15:46:51 14.0.8