$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];
PNO | 102 |
USER | vegamedical |
HOME | /home/wwwroot/vegamedical |
SCRIPT_NAME | /index.php |
REQUEST_URI | /Product/Info?PNO=102 |
QUERY_STRING | s=Product/Info&PNO=102 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=Product/Info&PNO=102 |
REDIRECT_URL | /Product/Info |
REMOTE_PORT | 33034 |
SCRIPT_FILENAME | /home/wwwroot/vegamedical/wwwroot/public/index.php |
SERVER_ADMIN | [no address given] |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/vegamedical/wwwroot/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /home/wwwroot/vegamedical/wwwroot/public |
REMOTE_ADDR | 3.92.84.196 |
SERVER_PORT | 80 |
SERVER_ADDR | 127.0.0.1 |
SERVER_NAME | www.vegamedical.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_X_FORWARDED_PROTO | http |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_CONNECTION | close |
HTTP_HOST | www.vegamedical.com |
HTTP_X_REAL_IP | 61.139.126.228 |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711719700.8298 |
REQUEST_TIME | 1711719700 |
APP_DEBUG | true |
CMF_ROOT | /home/wwwroot/vegamedical/wwwroot/ |
CMF_DATA | /home/wwwroot/vegamedical/wwwroot/data/ |
APP_PATH | /home/wwwroot/vegamedical/wwwroot/app/ |
WEB_ROOT | /home/wwwroot/vegamedical/wwwroot/public/ |
HTMLPURIFIER_PREFIX | /home/wwwroot/vegamedical/wwwroot/vendor/ezyang/htmlpurifier/library |