$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];
id | 1163 |
PHPSESSID | t3444ko25phhs9sg78qb3i9oo6 |
USER | www |
HOME | /home/www |
HTTP_X_TENANT_FORWARD_FOR | 107.158.239.98 |
HTTP_COOKIE | PHPSESSID=t3444ko25phhs9sg78qb3i9oo6 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
HTTP_X_FORWARDED_PROTO | https |
HTTP_X_FORWARDED_FOR | 107.158.239.98, 107.158.239.98 |
HTTP_X_REAL_IP | 107.158.239.98 |
HTTP_HOST | www.bjbluesky.com.cn |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | bjbluesky.com.cn |
SERVER_PORT | 443 |
SERVER_ADDR | 172.21.26.202 |
REMOTE_PORT | 44342 |
REMOTE_ADDR | 46.149.197.24 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /mnt/7kzhanqun/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /pro_info.asp?id=1163 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/pro_info.asp&id=1163 |
SCRIPT_FILENAME | /mnt/7kzhanqun/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1726003335.0707 |
REQUEST_TIME | 1726003335 |
APP_DEBUG | true |
CMF_ROOT | /mnt/7kzhanqun/ |
CMF_DATA | /mnt/7kzhanqun/data/ |
APP_PATH | /mnt/7kzhanqun/app/ |
WEB_ROOT | /mnt/7kzhanqun/public/ |
HTMLPURIFIER_PREFIX | /mnt/7kzhanqun/vendor/ezyang/htmlpurifier/library |
FILTER_VALIDATE_BOOL | 258 |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |