$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];
USER | www |
HOME | /home/www |
HTTP_X_MICROSOFTAJAX | Delta=true |
HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36 |
HTTP_CONTENT_TYPE | application/x-www-form-urlencoded; charset=utf-8 |
HTTP_CACHE_CONTROL | no-cache |
HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
HTTP_X_APPLE_STORE_FRONT | 143444,12 |
HTTP_X_APPLE_TZ | 0 |
HTTP_REFERER | https://www.baidu.com/search/spider.htm |
HTTP_HOST | tiantaiedu.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | tiantaiedu.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.25.40.11 |
REMOTE_PORT | 35292 |
REMOTE_ADDR | 192.161.57.40 |
SERVER_SOFTWARE | nginx/1.22.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/tiantaiedu.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /javascript: |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | application/x-www-form-urlencoded; charset=utf-8 |
REQUEST_METHOD | GET |
QUERY_STRING | s=/javascript: |
SCRIPT_FILENAME | /www/wwwroot/tiantaiedu.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1725385342.1719 |
REQUEST_TIME | 1725385342 |
HTTP_TYPE | https:// |
HTTP_HOST | tiantaiedu.com |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/tiantaiedu.com/ |
CMF_DATA | /www/wwwroot/tiantaiedu.com/data/ |
APP_PATH | /www/wwwroot/tiantaiedu.com/app/ |
WEB_ROOT | /www/wwwroot/tiantaiedu.com/public/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/tiantaiedu.com/vendor/ezyang/htmlpurifier/library |