if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
// 解析操作
$action = !empty($path) ? array_shift($path) : null;
// 解析额外参数
if ($path) {
if ($this->rule->getConfig('url_param_type')) {
$var += $path;
USER | www |
HOME | /home/www |
HTTP_HOST | ibr2mf.bdzhifu.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.gwsxwk.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.19.136.1 |
REMOTE_PORT | 38106 |
REMOTE_ADDR | 54.210.143.119 |
SERVER_SOFTWARE | nginx/1.18.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.gwsxwk.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /a/20180220/337766.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/a/20180220/337766.html |
SCRIPT_FILENAME | /www/wwwroot/www.gwsxwk.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711382.1066 |
REQUEST_TIME | 1711711382 |
APP_PATH | /www/wwwroot/www.gwsxwk.cn/public/../application/ |
SITE_URL | http://ibr2mf.bdzhifu.com |
CACHE_STATUS | false |
CACHE_1I | 60 |
CACHE_10I | 600 |
CACHE_20I | 1200 |
CACHE_30I | 1800 |
CACHE_1H | 3600 |
CACHE_2H | 7200 |
CACHE_4H | 14400 |
CACHE_8H | 28800 |
CACHE_12H | 43200 |
CACHE_1D | 86400 |
CACHE_7D | 604800 |
CACHE_10D | 864000 |
CACHE_20D | 1728000 |
CACHE_30D | 2592000 |