Error

PHP Fatal Error千赢国际娱乐手机版登录_千赢国际电脑版_千赢国际欢迎您

Class 'app\controllers\NotFoundHttpException' not found

  • 1. in D:\wamp64\www\htdocs\controllers\SiteController.php at line 249
    240241242243244245246247248249250251252253
            return $this->redirect(['site/page',
                        'slug' => $page->slug,
            ]);
        }
     
        protected function findPostModel($id) {
            if (($model = Post::findOne($id)) !== null) {
                return $model;
            } else {
                throw new NotFoundHttpException('The requested page does not exist.');
            }
        }
     
    }
    
  • 2. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\InlineAction.php at line 55 – app\controllers\SiteController::actionViewPost()
    495051525354555657
            $args = $this->controller->bindActionParams($this, $params);
            Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
            if (Yii::$app->requestedParams === null) {
                Yii::$app->requestedParams = $args;
            }
     
            return call_user_func_array([$this->controller, $this->actionMethod], $args);
        }
    }
    
  • 3. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\InlineAction.php at line 55 – call_user_func_array:{D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\InlineAction.php:55}()
    495051525354555657
            $args = $this->controller->bindActionParams($this, $params);
            Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
            if (Yii::$app->requestedParams === null) {
                Yii::$app->requestedParams = $args;
            }
     
            return call_user_func_array([$this->controller, $this->actionMethod], $args);
        }
    }
    
  • 4. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\Controller.php at line 151 yii\base\InlineAction::runWithParams()
    145146147148149150151152153154155156157
            }
     
            $result = null;
     
            if ($runAction && $this->beforeAction($action)) {
                // run the action
                $result = $action->runWithParams($params);
     
                $result = $this->afterAction($action, $result);
     
                // call afterAction on modules
                foreach ($modules as $module) {
                    /* @var $module Module */
    
  • 5. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\Module.php at line 455 yii\base\Controller::runAction()
    449450451452453454455456457458459460461
            $parts = $this->createController($route);
            if (is_array($parts)) {
                /* @var $controller Controller */
                list($controller, $actionID) = $parts;
                $oldController = Yii::$app->controller;
                Yii::$app->controller = $controller;
                $result = $controller->runAction($actionID, $params);
                Yii::$app->controller = $oldController;
     
                return $result;
            } else {
                $id = $this->getUniqueId();
                throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
    
  • 6. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\web\Application.php at line 84 yii\base\Module::runAction()
    78798081828384858687888990
                $params = $this->catchAll;
                unset($params[0]);
            }
            try {
                Yii::trace("Route requested: '$route'", __METHOD__);
                $this->requestedRoute = $route;
                $result = $this->runAction($route, $params);
                if ($result instanceof Response) {
                    return $result;
                } else {
                    $response = $this->getResponse();
                    if ($result !== null) {
                        $response->data = $result;
    
  • 7. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\Application.php at line 375 yii\web\Application::handleRequest()
    369370371372373374375376377378379380381
            try {
     
                $this->state = self::STATE_BEFORE_REQUEST;
                $this->trigger(self::EVENT_BEFORE_REQUEST);
     
                $this->state = self::STATE_HANDLING_REQUEST;
                $response = $this->handleRequest($this->getRequest());
     
                $this->state = self::STATE_AFTER_REQUEST;
                $this->trigger(self::EVENT_AFTER_REQUEST);
     
                $this->state = self::STATE_SENDING_RESPONSE;
                $response->send();
    
  • 8. in D:\wamp64\www\htdocs\web\index.php at line 12 yii\base\Application::run()
    6789101112
     
    require(__DIR__ . '/../vendor/autoload.php');
    require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
     
    $config = require(__DIR__ . '/../config/web.php');
     
    (new yii\web\Application($config))->run();
    
  • $_GET = [
        'id' => '1440',
    ];
    
    $_SERVER = [
        'REDIRECT_STATUS' => '200',
        'HTTP_USER_AGENT' => 'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)',
        'HTTP_HOST' => 'www.ycjljt.com',
        'HTTP_ACCEPT' => '*/*',
        'HTTP_ACCEPT_ENCODING' => 'deflate, gzip',
        'PATH' => 'C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Git\\cmd;',
        'SystemRoot' => 'C:\\Windows',
        'COMSPEC' => 'C:\\Windows\\system32\\cmd.exe',
        'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
        'WINDIR' => 'C:\\Windows',
        'SERVER_SIGNATURE' => '
    Apache/2.4.27 (Win64) PHP/5.6.31 Server at www.ycjljt.com Port 80
    ', 'SERVER_SOFTWARE' => 'Apache/2.4.27 (Win64) PHP/5.6.31', 'SERVER_NAME' => 'www.ycjljt.com', 'SERVER_ADDR' => '172.16.17.14', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '175.29.249.83', 'DOCUMENT_ROOT' => 'D:/wamp64/www/htdocs/web', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => 'D:/wamp64/www/htdocs/web', 'SERVER_ADMIN' => 'wampserver@wampserver.invalid', 'SCRIPT_FILENAME' => 'D:/wamp64/www/htdocs/web/index.php', 'REMOTE_PORT' => '20000', 'REDIRECT_URL' => '/view-post/1440', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/view-post/1440', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1586322522.7030001, 'REQUEST_TIME' => 1586322522, ];