$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];
type | 13 |
theme | 0 |
price | 0 |
page | 0 |
paint | 0 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/zhonghuameiwang.com/public/index.php |
QUERY_STRING | s=/shop/list.shtml&type=13&theme=0&price=0&page=0&paint=0 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /shop/list.shtml?type=13&theme=0&price=0&page=0&paint=0 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/zhonghuameiwang.com/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.16.1 |
REMOTE_ADDR | 3.80.129.195 |
REMOTE_PORT | 44006 |
SERVER_ADDR | 211.149.206.106 |
SERVER_PORT | 80 |
SERVER_NAME | zhonghuameiwang.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.zhonghuameiwang.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711679207.6765 |
REQUEST_TIME | 1711679207 |
APP_DEBUG | true |
CMF_ROOT | /home/wwwroot/zhonghuameiwang.com/ |
CMF_DATA | /home/wwwroot/zhonghuameiwang.com/data/ |
APP_PATH | /home/wwwroot/zhonghuameiwang.com/app/ |
WEB_ROOT | /home/wwwroot/zhonghuameiwang.com/public/ |
HTMLPURIFIER_PREFIX | /home/wwwroot/zhonghuameiwang.com/vendor/ezyang/htmlpurifier/library |