$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];
title | 硬件工程师(模拟电路) |
USER | www |
HOME | /home/www |
PATH_TRANSLATED | redirect:/index.php/information.html |
PATH_INFO | /index/information.html |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index.php/index/information.html?title=%E7%A1%AC%E4%BB%B6%E5%B7%A5%E7%A8%8B%E5%B8%88%EF%BC%88%E6%A8%A1%E6%8B%9F%E7%94%B5%E8%B7%AF%EF%BC%89 |
QUERY_STRING | title=%E7%A1%AC%E4%BB%B6%E5%B7%A5%E7%A8%8B%E5%B8%88%EF%BC%88%E6%A8%A1%E6%8B%9F%E7%94%B5%E8%B7%AF%EF%BC%89 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REMOTE_PORT | 59884 |
SCRIPT_FILENAME | /www/wwwroot/www.public-tech.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www.public-tech.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/www.public-tech.com/public |
REMOTE_ADDR | 54.83.176.101 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.251.231 |
SERVER_NAME | public-tech.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at public-tech.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | public-tech.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
SCRIPT_URI | http://public-tech.com/index.php/index/information.html |
SCRIPT_URL | /index.php/index/information.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/index/information.html |
REQUEST_TIME_FLOAT | 1711713501.7052 |
REQUEST_TIME | 1711713501 |
APP_PATH | /www/wwwroot/www.public-tech.com/public/../project/ |