small potato
Results
2
issues of
small potato
`
**Router.php 设置** ` $this->setPathInfoMode(false); $this->setGlobalMode(false); $this->setMethodNotAllowCallBack(function (Request $request,Response $response){ return '/index/index/index';//重定向到index路由 }); $this->setRouterNotFoundCallBack(function (Request $request,Response $response){ return '/index/index/index';//重定向到index路由 });` 访问不存在路由会重定向至/index/index/index,访问正常路径http://localhost/admin/login/login 也会重定向至/index/index/index