$this->app['hook']->listen('module_init');
try {
// 实例化控制器
$instance = $this->app->controller($this->controller,
$this->rule->getConfig('url_controller_layer'),
$this->rule->getConfig('controller_suffix'),
$this->rule->getConfig('empty_controller'));
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}
$this->app['middleware']->controller(function (Request $request, $next) use ($instance) {
// 获取当前操作名
$action = $this->actionName . $this->rule->getConfig('action_suffix');
if (is_callable([$instance, $action])) {
// 执行操作方法
$call = [$instance, $action];
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | chinavisionhk.com |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
SERVER_SIGNATURE | <address>Apache Server at chinavisionhk.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | chinavisionhk.com |
SERVER_ADDR | 172.23.23.146 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.235.243.45 |
DOCUMENT_ROOT | /home/wwwroot/www.chinavisionhk.com/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/www.chinavisionhk.com/public |
SERVER_ADMIN | admin@admin.com |
SCRIPT_FILENAME | /home/wwwroot/www.chinavisionhk.com/public/index.php |
REMOTE_PORT | 53182 |
REDIRECT_URL | /en/Feedback.html |
REDIRECT_QUERY_STRING | s=en/Feedback.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | s=en/Feedback.html |
REQUEST_URI | /en/Feedback.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711678590.346 |
REQUEST_TIME | 1711678590 |
APP_DEBUG | true |
CMF_ROOT | /home/wwwroot/www.chinavisionhk.com/ |
CMF_DATA | /home/wwwroot/www.chinavisionhk.com/data/ |
APP_PATH | /home/wwwroot/www.chinavisionhk.com/app/ |
WEB_ROOT | /home/wwwroot/www.chinavisionhk.com/public/ |
HTMLPURIFIER_PREFIX | /home/wwwroot/www.chinavisionhk.com/vendor/ezyang/htmlpurifier/library |