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;
REDIRECT_UNIQUE_ID | ZgbUwKakcPvegT97Bm6WsAAAAAU |
REDIRECT_PATH_INFO | shop/cate-1913-0-0-0-0-0-0-9-0.html |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgbUwKakcPvegT97Bm6WsAAAAAU |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.taozizi.cn |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache/2.4.6 (CentOS) PHP/7.2.29 |
SERVER_NAME | www.taozizi.cn |
SERVER_ADDR | 172.18.199.127 |
SERVER_PORT | 80 |
REMOTE_ADDR | 34.205.142.9 |
DOCUMENT_ROOT | /home/inquiry/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/inquiry/public |
SERVER_ADMIN | root@localhost |
SCRIPT_FILENAME | /home/inquiry/public/index.php |
REMOTE_PORT | 40760 |
REDIRECT_URL | /shop/cate-1913-0-0-0-0-0-0-9-0.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /shop/cate-1913-0-0-0-0-0-0-9-0.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711723712.496 |
REQUEST_TIME | 1711723712 |
ADDON_PATH | /home/inquiry/addons/ |