$available = true;
}
// 模块初始化
if ($module && $available) {
// 初始化模块
$this->request->setModule($module);
$this->app->init($module);
} else {
throw new HttpException(404, 'module not exists:' . $module);
}
}
// 是否自动转换控制器和操作名
$convert = is_bool($this->convert) ? $this->convert : $this->rule->getConfig('url_convert');
// 获取控制器名
$controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller'));
$this->controller = $convert ? strtolower($controller) : $controller;
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /cgonet/website/aiduny.cgonet.cn/index.php |
QUERY_STRING | |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.php/default/category/20/2.html |
DOCUMENT_URI | /index.php/default/category/20/2.html |
DOCUMENT_ROOT | /cgonet/website/aiduny.cgonet.cn |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.15.9 |
REMOTE_ADDR | 54.226.68.181 |
REMOTE_PORT | 45380 |
SERVER_ADDR | 113.10.156.104 |
SERVER_PORT | 80 |
SERVER_NAME | www.aiduny.com |
REDIRECT_STATUS | 200 |
PATH_INFO | /default/category/20/2.html |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.aiduny.com |
PHP_SELF | /index.php/default/category/20/2.html |
REQUEST_TIME_FLOAT | 1711711376.0922 |
REQUEST_TIME | 1711711376 |
BIND_MODULE | index |