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 |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/www.cncljx.cn/index.php |
QUERY_STRING | s=/books/46113439.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /books/46113439.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/www.cncljx.cn |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.22.1 |
REMOTE_ADDR | 182.120.85.12 |
REMOTE_PORT | 55856 |
SERVER_ADDR | 172.20.196.50 |
SERVER_PORT | 80 |
SERVER_NAME | www.cncljx.cn |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_HOST | www.cncljx.cn |
HTTP_ACCEPT | */* |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1716128911.5015 |
REQUEST_TIME | 1716128911 |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/www.cncljx.cn/ |
CMF_DATA | /www/wwwroot/www.cncljx.cn/data/ |
APP_PATH | /www/wwwroot/www.cncljx.cn/app/ |
WEB_ROOT | /www/wwwroot/www.cncljx.cn/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/www.cncljx.cn/vendor/ezyang/htmlpurifier/library |