$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 | nobody |
HOME | / |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /data/user/htdocs/en/index.php |
PATH_INFO | |
QUERY_STRING | s=/%E6%97%A0%E5%B9%BF%E5%91%8A%EF%BC%8C%E4%B8%80%E9%A2%97%E7%B3%96%E4%B8%8A%E5%B8%82%E4%B8%89%E5%B9%B4%E5%8D%962%E4%BA%BF%EF%BC%9F-%E4%BA%A7%E5%93%81%E5%BC%80%E5%8F%91%E6%A1%88%E4%BE%8B.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /en/index.php |
REQUEST_URI | /en/%e6%97%a0%e5%b9%bf%e5%91%8a%ef%bc%8c%e4%b8%80%e9%a2%97%e7%b3%96%e4%b8%8a%e5%b8%82%e4%b8%89%e5%b9%b4%e5%8d%962%e4%ba%bf%ef%bc%9f-%e4%ba%a7%e5%93%81%e5%bc%80%e5%8f%91%e6%a1%88%e4%be%8b.html |
DOCUMENT_URI | /en/index.php |
DOCUMENT_ROOT | /data/user/htdocs |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 54.81.157.133 |
REMOTE_PORT | 59830 |
SERVER_ADDR | 10.21.16.184 |
SERVER_PORT | 80 |
SERVER_NAME | wh-nbcavo50cwy7a7a8843.my3w.com |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.huayuhua.com |
PHP_SELF | /en/index.php |
REQUEST_TIME_FLOAT | 1711664278.2003 |
REQUEST_TIME | 1711664278 |
ROOT_PATH | /data/user/htdocs/en |
APP_PATH | /data/user/htdocs/en/application |
WEB_URL | http://www.huayuhua.com/en/ |