}
// 设置当前请求的参数
$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 路由信息
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/lingxiong.com/index.php |
QUERY_STRING | s=/index/Lists/show/catid/31/id/123.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/Lists/show/catid/31/id/123.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/lingxiong.com |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.20.2 |
REMOTE_ADDR | 34.201.19.151 |
REMOTE_PORT | 48352 |
SERVER_ADDR | 172.19.27.174 |
SERVER_PORT | 80 |
SERVER_NAME | lingxiong.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | lingxiong.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711878.3952 |
REQUEST_TIME | 1711711878 |
ROOT_PATH | /www/wwwroot/lingxiong.com |
APP_PATH | /www/wwwroot/lingxiong.com/application |
WEB_URL | http://lingxiong.com/ |