明白了!为了确保内容符合你的需求,能否请你确认一下文章的具体方向或目标读者?
本文心得:
分享让更多人看到
$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];
DOCUMENT_ROOT | /usr/home/wh-abj0mhfduytecwpnmce/htdocs |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_CACHE_CONTROL | no-cache |
HTTP_CONNECTION | close |
HTTP_HOST | sqcnc.cn |
HTTP_PRAGMA | no-cache |
HTTP_REMOTE_HOST | 18.222.161.177 |
HTTP_UPGRADE_INSECURE_REQUESTS | 1 |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_X_FORWARDED_FOR | 18.222.161.177 |
HTTP_X_FORWARDED_PROTO | http |
HTTP_X_REAL_IP | 18.222.161.177 |
PATH | /bin |
PHPRC | /var/www/php56/hichina_ini/wh-abj0mhfduytecwpnmce |
QUERY_STRING | |
REDIRECT_DOCUMENT_ROOT | /usr/home/wh-abj0mhfduytecwpnmce/htdocs |
REDIRECT_GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
REDIRECT_HTTP_ACCEPT_ENCODING | gzip, deflate |
REDIRECT_HTTP_CACHE_CONTROL | no-cache |
REDIRECT_HTTP_CONNECTION | close |
REDIRECT_HTTP_HOST | sqcnc.cn |
REDIRECT_HTTP_PRAGMA | no-cache |
REDIRECT_HTTP_REMOTE_HOST | 18.222.161.177 |
REDIRECT_HTTP_UPGRADE_INSECURE_REQUESTS | 1 |
REDIRECT_HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
REDIRECT_HTTP_X_FORWARDED_FOR | 18.222.161.177 |
REDIRECT_HTTP_X_FORWARDED_PROTO | http |
REDIRECT_HTTP_X_REAL_IP | 18.222.161.177 |
REDIRECT_PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
REDIRECT_PATH_INFO | home/article/detail/id/upload/article-080059.shtml |
REDIRECT_PATH_TRANSLATED | redirect:/index.php/detail/id/upload/article-080059.shtml |
REDIRECT_QUERY_STRING | |
REDIRECT_REMOTE_ADDR | 10.0.16.210 |
REDIRECT_REMOTE_PORT | 36512 |
REDIRECT_REQUEST_METHOD | GET |
REDIRECT_REQUEST_URI | /home/article/detail/id/upload/article-080059.shtml |
REDIRECT_SCRIPT_FILENAME | /usr/home/wh-abj0mhfduytecwpnmce/htdocs/home |
REDIRECT_SCRIPT_NAME | /home |
REDIRECT_SERVER_ADDR | 10.0.46.230 |
REDIRECT_SERVER_ADMIN | webmaster@wh-abj0mhfduytecwpnmce.my3w.com |
REDIRECT_SERVER_NAME | sqcnc.cn |
REDIRECT_SERVER_PORT | 80 |
REDIRECT_SERVER_PROTOCOL | HTTP/1.0 |
REDIRECT_SERVER_SIGNATURE | |
REDIRECT_SERVER_SOFTWARE | Apache |
REDIRECT_STATUS | 200 |
REDIRECT_TZ | Asia/Shanghai |
REDIRECT_UNIQUE_ID | Z1w7ogoALuYAOfYJsj8AAAAK |
REDIRECT_URL | /home/article/detail/id/upload/article-080059.shtml |
REMOTE_ADDR | 10.0.16.210 |
REMOTE_PORT | 36512 |
REQUEST_METHOD | GET |
REQUEST_URI | /home/article/detail/id/upload/article-080059.shtml |
SCRIPT_FILENAME | /usr/home/wh-abj0mhfduytecwpnmce/htdocs/index.php |
SCRIPT_NAME | /index.php |
SERVER_ADDR | 10.0.46.230 |
SERVER_ADMIN | webmaster@wh-abj0mhfduytecwpnmce.my3w.com |
SERVER_NAME | sqcnc.cn |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.0 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Asia/Shanghai |
UNIQUE_ID | Z1w7ogoALuYAOfYJsj8AAAAK |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1734097826.83 |
REQUEST_TIME | 1734097826 |
DS | / |
__APP_PATH__ | /usr/home/wh-abj0mhfduytecwpnmce/htdocs/app/ |
__ROOT_PATH__ | /usr/home/wh-abj0mhfduytecwpnmce/htdocs/ |
__CONFIG_PATH__ | /usr/home/wh-abj0mhfduytecwpnmce/htdocs/core/config/ |
__RUNTIME_PATH__ | /usr/home/wh-abj0mhfduytecwpnmce/htdocs/core/runtime/ |
62t 评论于 [2024-12-13 21:48:27]
商洽
水点
酷吏