}
// 设置当前请求的参数
$this->request->setRouteVars($var);
// 封装路由
$route = [$module, $controller, $action];
if ($this->hasDefinedRoute($route, $bind)) {
throw new HttpException(404, 'invalid request:' . str_replace('|', $depr, $url));
}
return $route;
}
/**
* 检查URL是否已经定义过路由
* @access protected
* @param string $route 路由信息
url | index/Index/news?id=1839 |
USER | www |
HOME | /home/www |
HTTP_REFERER | http://youming.net/index/login/index.html?url=index/Index/news?id=1839 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | youming.net |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | youming.net |
SERVER_PORT | 443 |
SERVER_ADDR | 172.26.201.71 |
REMOTE_PORT | 47504 |
REMOTE_ADDR | 44.195.23.152 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/youming.net/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/login/index.html?url=index/Index/news?id=1839 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/login/index.html&url=index/Index/news?id=1839 |
SCRIPT_FILENAME | /www/wwwroot/youming.net/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727511.4222 |
REQUEST_TIME | 1711727511 |
DS | / |
ROOT_PATH | /www/wwwroot/youming.net/public/ |
ROOT | /www/wwwroot/youming.net/ |
VENFOR_PATH | /www/wwwroot/youming.net/vendor/ |