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 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /news/5665.html |
QUERY_STRING | s=news/5665.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=news/5665.html |
REDIRECT_URL | /news/5665.html |
REMOTE_PORT | 59136 |
SCRIPT_FILENAME | /www/wwwroot/hyt.ibisaas.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/hyt.ibisaas.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/hyt.ibisaas.com/public |
REMOTE_ADDR | 34.224.33.93 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.191.125 |
SERVER_NAME | hyt.ibisaas.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at hyt.ibisaas.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_HOST | hyt.ibisaas.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
SCRIPT_URI | http://hyt.ibisaas.com/news/5665.html |
SCRIPT_URL | /news/5665.html |
REDIRECT_STATUS | 200 |
REDIRECT_SCRIPT_URI | http://hyt.ibisaas.com/news/5665.html |
REDIRECT_SCRIPT_URL | /news/5665.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711717500.4599 |
REQUEST_TIME | 1711717500 |
WEB_PATH | /www/wwwroot/hyt.ibisaas.com/public/ |
APP_PATH | /www/wwwroot/hyt.ibisaas.com/public/../application/ |
QINIU_FUNCTIONS_VERSION | 7.2.5 |