$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;
/modules/article/reader_php | |
aid | 1290 |
cid | 932227 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /modules/article/reader.php?aid=1290&cid=932227 |
QUERY_STRING | /modules/article/reader.php&aid=1290&cid=932227 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | /modules/article/reader.php&aid=1290&cid=932227 |
REDIRECT_URL | /modules/article/reader.php |
REMOTE_PORT | 46468 |
SCRIPT_FILENAME | /www/wwwroot/www.novelbook.cn/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www.novelbook.cn |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/www.novelbook.cn |
REMOTE_ADDR | 44.212.50.220 |
SERVER_PORT | 80 |
SERVER_ADDR | 10.0.16.17 |
SERVER_NAME | www.novelbook.cn |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.novelbook.cn Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.novelbook.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711641215.5491 |
REQUEST_TIME | 1711641215 |
APP_PATH | /www/wwwroot/www.novelbook.cn/application/ |