2019-08-27 17:07:15 2143次浏览 1条回答 0 悬赏 10 金钱
An Error occurred while handling another error:
exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "site/error".' in D:\root\PHPTutorial\WWW\an_git\vendor\yiisoft\yii2\base\Module.php:537
Stack trace:
#0 D:\root\PHPTutorial\WWW\an_git\vendor\yiisoft\yii2\web\ErrorHandler.php(108): yii\base\Module->runAction('site/error')
#1 D:\root\PHPTutorial\WWW\an_git\vendor\yiisoft\yii2\base\ErrorHandler.php(111): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException))
#2 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException))
#3 {main}
Previous exception:
exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "".' in D:\root\PHPTutorial\WWW\n_git\vendor\yiisoft\yii2\base\Module.php:537
Stack trace:
#0 D:\root\PHPTutorial\WWW\an_git\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('', Array)
#1 D:\root\PHPTutorial\WWW\an_git\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#2 D:\root\PHPTutorial\WWW\an_git\activity\web\index.php(17): yii\base\Application->run()
#3 {main}

Next exception 'yii\web\NotFoundHttpException' with message '页面未找到。' in D:\root\PHPTutorial\WWW\an_git\vendor\yiisoft\yii2\web\Application.php:115
Stack trace:
#0 D:\root\PHPTutorial\WWW\an_git\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#1 D:\root\PHPTutorial\WWW\an_git\activity\web\index.php(17): yii\base\Application->run()
#2 {main}
  • 回答于 2019-08-28 15:00 举报

    开了隐藏入口文件,需要环境支持,apache的.htaccess或者nginx的其它,不然不能隐藏入口文件

    觉得很赞
您需要登录后才可以回答。登录 | 立即注册
PHP学院的中学生
副总裁

PHP学院的中学生

注册时间:2018-10-23
最后登录:2024-09-23
在线时长:168小时13分
  • 粉丝29
  • 金钱4725
  • 威望30
  • 积分6705

热门问题