2019-08-27 17:07:15 493次浏览 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
最后登录:1小时前
在线时长:54小时14分
  • 粉丝13
  • 金钱505
  • 威望20
  • 积分1245

热门问题