$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($action == 'EXAMID=2400')
{
$action = 'geturl';
}
EXAMID | 1027 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /home/www/exam/public/index.php |
QUERY_STRING | s=/index.php/totalxnsm/index&EXAMID=1027 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.php/totalxnsm/index?EXAMID=1027 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /home/www/exam/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | https |
HTTPS | on |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.12.2 |
REMOTE_ADDR | 18.206.238.189 |
REMOTE_PORT | 36692 |
SERVER_ADDR | 59.63.165.45 |
SERVER_PORT | 443 |
SERVER_NAME | zpks.hbhr.com.cn |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://zpks.hbhr.com.cn/index.php/totalxnsm/index?EXAMID=1027 |
HTTP_HOST | zpks.hbhr.com.cn |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711706247.5653 |
REQUEST_TIME | 1711706247 |
ADMIN_FILE | admin.php |
HTMLPURIFIER_PREFIX | /home/www/exam/vendor/ezyang/htmlpurifier/library |
PUBLIC_PATH | / |