$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];
DOCUMENT_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_HOST | sdruidien.com |
HTTP_REMOTE_HOST | 3.233.219.31 |
HTTP_USER_AGENT | claudebot |
HTTP_X_FORWARDED_FOR | 3.233.219.31 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_REAL_IP | 3.233.219.31 |
PATH | /bin |
PATH_INFO | /duojilixingufengji/ |
PATH_TRANSLATED | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/index.php |
PHPRC | /var/www/php56/hichina_ini/wh-abhe4yxbj78uujbgi8u |
QUERY_STRING | |
REDIRECT_STATUS | 200 |
REMOTE_ADDR | 10.0.29.97 |
REMOTE_PORT | 44694 |
REQUEST_METHOD | GET |
REQUEST_URI | /index.php/duojilixingufengji/ |
SCRIPT_FILENAME | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/index.php |
SCRIPT_NAME | /index.php |
SERVER_ADDR | 10.0.44.57 |
SERVER_ADMIN | webmaster@wh-abhe4yxbj78uujbgi8u.my3w.com |
SERVER_NAME | sdruidien.com |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.0 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Asia/Shanghai |
UNIQUE_ID | ZgZ7yQoALDkAEiv4VYQAAAAE |
PHP_SELF | /index.php/duojilixingufengji/ |
REQUEST_TIME_FLOAT | 1711700937.3625 |
REQUEST_TIME | 1711700937 |
APP_DEBUG | true |
CMF_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/ |
CMF_DATA | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/data/ |
APP_PATH | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/app/ |
WEB_ROOT | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/ |
HTMLPURIFIER_PREFIX | /usr/home/wh-abhe4yxbj78uujbgi8u/htdocs/vendor/ezyang/htmlpurifier/library |