$this->app['hook']->listen('module_init');
// 实例化控制器
try {
$instance = $this->app->controller($this->controller,
$this->app->config('app.url_controller_layer'),
$this->app->config('app.controller_suffix'),
$this->app->config('app.empty_controller'));
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}
// 获取当前操作名
$action = $this->actionName . $this->app->config('app.action_suffix');
if (is_callable([$instance, $action])) {
// 执行操作方法
$call = [$instance, $action];
USER | www |
HOME | /home/www |
HTTP_HOST | www.rainandcharles.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | /company-photo/ |
REDIRECT_STATUS | 200 |
SERVER_NAME | rainandcharles.com |
SERVER_PORT | 80 |
SERVER_ADDR | 103.120.82.132 |
REMOTE_PORT | 36822 |
REMOTE_ADDR | 3.93.162.26 |
SERVER_SOFTWARE | nginx/1.15.10 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/rainandcharles.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /company-photo/ |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/company-photo/ |
SCRIPT_FILENAME | /www/wwwroot/rainandcharles.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711662432.6804 |
REQUEST_TIME | 1711662432 |
APP_PATH | /home/wwwroot/rainandcharles.com/application/ |