}
// 设置当前请求的参数
$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 路由信息
PHPSESSID | hm1ao4iq3fu35deukmr1gbrdnl |
lang | def |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=hm1ao4iq3fu35deukmr1gbrdnl; lang=def |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sctpcb.net |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36 |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.sctpcb.net |
SERVER_PORT | 443 |
SERVER_ADDR | 10.0.12.12 |
REMOTE_PORT | 53808 |
REMOTE_ADDR | 209.73.153.10 |
SERVER_SOFTWARE | nginx/1.24.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.sctpcb.net |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/service/show/id/400.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/service/show/id/400.html |
SCRIPT_FILENAME | /www/wwwroot/www.sctpcb.net/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1720266828.6475 |
REQUEST_TIME | 1720266828 |