if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
}
if ($controller && !preg_match('/^[A-Za-z0-9][\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 | www.yoyi.com.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.yoyi.com.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 10.2.32.185 |
REMOTE_PORT | 41601 |
REMOTE_ADDR | 10.2.0.17 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/html/www.yoyi.com.cn |
DOCUMENT_URI | /index.php |
REQUEST_URI | /case_tags/%25E5%25AE%25B6%25E8%25A3%2585%25E8%25A1%258C%25E4%25B8%259A/37 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/case_tags/%25E5%25AE%25B6%25E8%25A3%2585%25E8%25A1%258C%25E4%25B8%259A/37 |
SCRIPT_FILENAME | /data/html/www.yoyi.com.cn/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711720771.719 |
REQUEST_TIME | 1711720771 |
UX_ADMIN_URL | @growthman1688 |
ROOT_PATH | /data/html/www.yoyi.com.cn/ |
APP_PATH | /data/html/www.yoyi.com.cn/application/ |
DS | / |
ADDON_PATH | /data/html/www.yoyi.com.cn/addons/ |
ROOT_URL | / |
TEMPLATE_PATH | /data/html/www.yoyi.com.cn/templates/ |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |