// 自动获取请求变量
$vars = $this->rule->getConfig('url_param_type')
? $this->request->route()
: $this->request->param();
$vars = array_merge($vars, $this->param);
} elseif (is_callable([$instance, '_empty'])) {
// 空操作
$call = [$instance, '_empty'];
$vars = [$this->actionName];
$reflect = new ReflectionMethod($instance, '_empty');
} else {
// 操作不存在
throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
}
$this->app['hook']->listen('action_begin', $call);
$data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/zhhdip.com/index.php |
QUERY_STRING | |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.php/article/culture.html |
DOCUMENT_URI | /index.php/article/culture.html |
DOCUMENT_ROOT | /www/wwwroot/zhhdip.com |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.22.1 |
REMOTE_ADDR | 3.238.142.134 |
REMOTE_PORT | 34314 |
SERVER_ADDR | 192.168.1.232 |
SERVER_PORT | 80 |
SERVER_NAME | zhhdip.com |
REDIRECT_STATUS | 200 |
PATH_INFO | /article/culture.html |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.zhhdip.com |
PHP_SELF | /index.php/article/culture.html |
REQUEST_TIME_FLOAT | 1711630726.6123 |
REQUEST_TIME | 1711630726 |
APP_PATH | /www/wwwroot/zhhdip.com/app/ |
__PHYSICS__ | /www/wwwroot/zhhdip.com |