$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];
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_CONNECTION | close |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/about/16.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /index/about/16.html |
REMOTE_PORT | 35614 |
SCRIPT_FILENAME | /var/www/vhosts/jsnaier.com/httpdocs/index.php |
SERVER_ADMIN | 907289930@qq.com |
CONTEXT_DOCUMENT_ROOT | /var/www/vhosts/jsnaier.com/httpdocs |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /var/www/vhosts/jsnaier.com/httpdocs |
REMOTE_ADDR | 107.158.201.46 |
SERVER_PORT | 80 |
SERVER_ADDR | 192.168.255.13 |
SERVER_NAME | www.jsnaier.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at www.jsnaier.com Port 80 |
LD_LIBRARY_PATH | /usr/local/apache/lib |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.jsnaier.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
UNIQUE_ID | Zit-@FGAvJRRpwd783Du0QAAAA4 |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | index/about/16.html |
REDIRECT_UNIQUE_ID | Zit-@FGAvJRRpwd783Du0QAAAA4 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1714126840.2183 |
REQUEST_TIME | 1714126840 |
DS | / |
APP_PATH | /var/www/vhosts/jsnaier.com/httpdocs/application/ |
APP_DEBUG | true |