}
}
// 是否自动转换控制器和操作名
$convert = is_bool($this->convert) ? $this->convert : $this->rule->getConfig('url_convert');
// 获取控制器名
$controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller'));
if (!preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
$this->controller = $convert ? strtolower($controller) : $controller;
// 获取操作名
$this->actionName = strip_tags($result[2] ?: $this->rule->getConfig('default_action'));
// 设置当前请求的控制器、操作
$this->request
USER | apache |
HOME | /usr/share/httpd |
HTTP_HOST | www.germanstyle.net |
HTTP_REFERER | http://www.germanstyle.net/en/wp-content/uploads/2018/05/x20170518095443916.JPG.pagespeed.ic_.HKE7xT7s5n.jpg |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.germanstyle.net |
SERVER_PORT | 443 |
SERVER_ADDR | 47.91.131.25 |
REMOTE_PORT | 48016 |
REMOTE_ADDR | 44.208.25.215 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/www/german/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /en/wp-content/uploads/2018/05/x20170518095443916.JPG.pagespeed.ic_.HKE7xT7s5n.jpg |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//en/wp-content/uploads/2018/05/x20170518095443916.JPG.pagespeed.ic_.HKE7xT7s5n.jpg |
SCRIPT_FILENAME | /home/www/german/public/index.php |
PATH_INFO | |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711693064.6425 |
REQUEST_TIME | 1711693064 |
PUBLIC_PATH | /home/www/german/public/../public/ |