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 | 55806 |
REMOTE_ADDR | 54.226.222.183 |
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%BB%9D%E7%BC%98%E9%98%BB%E6%8A%97%EF%BC%88IR%EF%BC%89%E6%B5%8B%E8%AF%95%E6%98%AF%E4%BB%80%E4%B9%88 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/tag/%E7%BB%9D%E7%BC%98%E9%98%BB%E6%8A%97%EF%BC%88IR%EF%BC%89%E6%B5%8B%E8%AF%95%E6%98%AF%E4%BB%80%E4%B9%88 |
SCRIPT_FILENAME | /www/wwwroot/xinwei-lab.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710848059.16 |
REQUEST_TIME | 1710848059 |