CHttpException

系统无法找到请求的 "sdf" 动作.

/www/wwwroot/test2021.125job.com/vendors/framework/web/CController.php(486)

474         return $this->createActionFromMap($map,$actionID,$requestActionID,$config);
475     }
476 
477     /**
478      * Handles the request whose action is not recognized.
479      * This method is invoked when the controller cannot find the requested action.
480      * The default implementation simply throws an exception.
481      * @param string $actionID the missing action name
482      * @throws CHttpException whenever this method is invoked
483      */
484     public function missingAction($actionID)
485     {
486         throw new CHttpException(404,Yii::t('yii','The system is unable to find the requested action "{action}".',
487             array('{action}'=>$actionID==''?$this->defaultAction:$actionID)));
488     }
489 
490     /**
491      * @return CAction the action currently being executed, null if no active action.
492      */
493     public function getAction()
494     {
495         return $this->_action;
496     }
497 
498     /**

Stack Trace

#4
+
 /www/wwwroot/test2021.125job.com/web/index.php(12): CApplication->run()
07 
08 $config = dirname(__FILE__).'/../config/main.php';
09 
10 //Yii run you
11 require_once(dirname(__FILE__).'/../vendors/framework/yii.php');
12 Yii::createWebApplication($config)->run();
2024-03-19 18:01:18 nginx/1.17.8 Yii Framework/1.1.20