$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(200, '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];
27_1_html |
USER | www |
HOME | /home/www |
HTTP_HOST | www.jinbeiwj.com |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1) |
HTTP_REFERER | http://www.baidu.com |
HTTP_ACCEPT_LANGUAGE | zh-CN,zh |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
HTTP_CONTENT_TYPE | application/x-www-form-urlencoded; Charset=UTF-8 |
HTTP_CONNECTION | Keep-Alive |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.jinbeiwj.com |
SERVER_PORT | 80 |
SERVER_ADDR | 211.149.245.25 |
REMOTE_PORT | 58288 |
REMOTE_ADDR | 137.175.79.232 |
SERVER_SOFTWARE | nginx/1.15.10 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www_0971ad_com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /list/?27_1.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | application/x-www-form-urlencoded; Charset=UTF-8 |
REQUEST_METHOD | GET |
QUERY_STRING | s=/list/&27_1.html |
SCRIPT_FILENAME | /www/wwwroot/www_0971ad_com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1701604029.0694 |
REQUEST_TIME | 1701604029 |
APP_DEBUG | true |
CMF_ROOT | /home/wwwroot/www_0971ad_com/ |
CMF_DATA | /home/wwwroot/www_0971ad_com/data/ |
APP_PATH | /home/wwwroot/www_0971ad_com/app/ |
WEB_ROOT | /home/wwwroot/www_0971ad_com/public/ |
HTMLPURIFIER_PREFIX | /home/wwwroot/www_0971ad_com/vendor/ezyang/htmlpurifier/library |