$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;
id | 16 |
PHPSESSID | mgitj9ajok256h7agi4dgv1ic2 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /dcp_detail.html?id=16 |
QUERY_STRING | s=/dcp_detail.html&id=16 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/dcp_detail.html&id=16 |
REDIRECT_URL | /dcp_detail.html |
REMOTE_PORT | 39362 |
SCRIPT_FILENAME | /www/wwwroot/www.public-tech.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www.public-tech.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /www/wwwroot/www.public-tech.com/public |
REMOTE_ADDR | 170.130.202.122 |
SERVER_PORT | 443 |
SERVER_ADDR | 172.17.251.231 |
SERVER_NAME | www.public-tech.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.public-tech.com Port 443 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_COOKIE | PHPSESSID=mgitj9ajok256h7agi4dgv1ic2 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.public-tech.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
proxy-nokeepalive | 1 |
SSL_TLS_SNI | www.public-tech.com |
HTTPS | on |
SCRIPT_URI | /dcp_detail.html |
SCRIPT_URL | /dcp_detail.html |
REDIRECT_STATUS | 200 |
REDIRECT_SSL_TLS_SNI | www.public-tech.com |
REDIRECT_HTTPS | on |
REDIRECT_SCRIPT_URI | /dcp_detail.html |
REDIRECT_SCRIPT_URL | /dcp_detail.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1731482703.7627 |
REQUEST_TIME | 1731482703 |
APP_PATH | /www/wwwroot/www.public-tech.com/public/../project/ |