if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
// 解析操作
$action = !empty($path) ? array_shift($path) : null;
// 解析额外参数
if ($path) {
if ($this->rule->getConfig('url_param_type')) {
$var += $path;
USER | www |
HOME | /home/www |
HTTP_HOST | www.cccsrrc.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | chaoyue-test.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.239.70 |
REMOTE_PORT | 33086 |
REMOTE_ADDR | 3.235.229.251 |
SERVER_SOFTWARE | nginx/1.15.10 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/xinwei-lab.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /tag/%E7%A1%AC%E7%9B%98%E7%9B%92%E8%B4%A8%E6%A3%80%E6%8A%A5%E5%91%8A%E6%80%8E%E4%B9%88%E5%8A%9E%E7%90%86 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/tag/%E7%A1%AC%E7%9B%98%E7%9B%92%E8%B4%A8%E6%A3%80%E6%8A%A5%E5%91%8A%E6%80%8E%E4%B9%88%E5%8A%9E%E7%90%86 |
SCRIPT_FILENAME | /www/wwwroot/xinwei-lab.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727685.4299 |
REQUEST_TIME | 1711727685 |