}
// 设置当前请求的参数
$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 |
HTTP_HOST | www.synggm.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | synuogao.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.31.141.139 |
REMOTE_PORT | 49252 |
REMOTE_ADDR | 54.175.70.29 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www_other/www.synggm.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /portal/article/index/cid/2.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=portal/article/index/cid/2.html |
SCRIPT_FILENAME | /www/wwwroot/www_other/www.synggm.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711695167.0796 |
REQUEST_TIME | 1711695167 |
HTTP_TYPE | http:// |
HTTP_HOST | www.synggm.com |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/www_other/www.synggm.com/ |
CMF_DATA | /www/wwwroot/www_other/www.synggm.com/data/ |
APP_PATH | /www/wwwroot/www_other/www.synggm.com/app/ |
WEB_ROOT | /www/wwwroot/www_other/www.synggm.com/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/www_other/www.synggm.com/vendor/ezyang/htmlpurifier/library |