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 | bae |
HOME | /home/bae |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | hfskdq.com |
HTTP_CLIENTIP | 44.193.208.105 |
HTTP_X_FORWARDED_FOR | 44.193.208.105 |
HTTP_X_FORWARDED_PROTO | http |
REDIRECT_STATUS | 200 |
SERVER_NAME | hfskdq.com |
SERVER_ADDR | 172.17.0.4 |
REMOTE_PORT | |
REMOTE_ADDR | 44.193.208.105 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/bae/app |
DOCUMENT_URI | /index.php/search/消弧消谐柜.html |
REQUEST_URI | /search/%E6%B6%88%E5%BC%A7%E6%B6%88%E8%B0%90%E6%9F%9C.html |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SERVER_PORT | 80 |
PATH_INFO | /search/%E6%B6%88%E5%BC%A7%E6%B6%88%E8%B0%90%E6%9F%9C.html |
SCRIPT_NAME | /index.php/search/消弧消谐柜.html |
SCRIPT_FILENAME | /home/bae/app/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/search/消弧消谐柜.html/search/%E6%B6%88%E5%BC%A7%E6%B6%88%E8%B0%90%E6%9F%9C.html |
REQUEST_TIME_FLOAT | 1711708822.6744 |
REQUEST_TIME | 1711708822 |
SERVER_SOFTWARE | bae/3.0 |
BAE_ENV_APPID | appidp3028l16t1 |
BAE_ENV_LOG_HOST | 172.17.0.1 |
BAE_ENV_LOG_PORT | 7000 |
BAE_MEMORY | 128 |
DS | / |
APP_PATH | /home/bae/app/./application/ |
CONF_PATH | /home/bae/app/./config/ |
PUBILC_PATH | /home/bae/app/ |
ROOT_PATH | /home/bae/app |
CACHE_PATH | /home/bae/app/./runtime/ |
CONFIG_PATH | /home/bae/app/./config/ |
UPLOAD_PATH | uploads |