$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];
/book/yulei/mobile/index_html |
PATH | C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script; |
SYSTEMROOT | C:\Windows |
COMSPEC | C:\Windows\system32\cmd.exe |
PATHEXT | .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC |
WINDIR | C:\Windows |
_FCGI_SHUTDOWN_EVENT_ | 20240 |
HTTP_CONNECTION | close |
SCRIPT_NAME | /index.php |
REQUEST_URI | /book/yulei/mobile/index.html |
QUERY_STRING | /book/yulei/mobile/index.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | /book/yulei/mobile/index.html |
REDIRECT_URL | /book/yulei/mobile/index.html |
REMOTE_PORT | 53228 |
SCRIPT_FILENAME | D:/wwwroot/dinnuo/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | D:/wwwroot/dinnuo/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | D:/wwwroot/dinnuo/public |
REMOTE_ADDR | 18.209.63.120 |
SERVER_PORT | 80 |
SERVER_ADDR | 103.39.209.226 |
SERVER_NAME | www.dinnuo.cn |
SERVER_SOFTWARE | Apache/2.4.51 (Win64) OpenSSL/1.1.1l mod_fcgid/2.3.9a |
SERVER_SIGNATURE | |
SystemRoot | C:\Windows |
HTTP_HOST | www.dinnuo.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711637647.1867 |
REQUEST_TIME | 1711637647 |