// 设置当前请求的控制器、操作
$request->controller(Loader::parseName($controller, 1))->action($actionName);
// 监听module_init
Hook::listen('module_init', $request);
$instance = Loader::controller($controller, $config['url_controller_layer'], $config['controller_suffix'], $config['empty_controller']);
if (is_null($instance)) {
throw new HttpException(404, 'controller not exists:' . Loader::parseName($controller, 1));
}
// 获取当前操作名
$action = $actionName . $config['action_suffix'];
if (is_callable([$instance, $action])) {
// 执行操作方法
$call = [$instance, $action];
} elseif (is_callable([$instance, '_empty'])) {
// 空操作
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /mnt/inspolaris/bgmg/index.php |
QUERY_STRING | s=//icom-geographic-am/aces-powergrade.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /icom-geographic-am/aces-powergrade.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /mnt/inspolaris/bgmg |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.8.0 |
REMOTE_ADDR | 34.229.62.45 |
REMOTE_PORT | 60988 |
SERVER_ADDR | 172.16.154.241 |
SERVER_PORT | 80 |
SERVER_NAME | bgmg.inspolaris.com |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.inspolaris.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711709435.6073 |
REQUEST_TIME | 1711709435 |
PATH_INFO | //icom-geographic-am/aces-powergrade.html |
APP_PATH | /mnt/inspolaris/bgmg/detect/ |
THINK_VERSION | 5.0.2 |
THINK_START_TIME | 1711709435.6075 |
THINK_START_MEM | 232904 |
EXT | .php |
DS | / |
THINK_PATH | /mnt/inspolaris/bgmg/thinkphp/ |
LIB_PATH | /mnt/inspolaris/bgmg/thinkphp/library/ |
CORE_PATH | /mnt/inspolaris/bgmg/thinkphp/library/think/ |
TRAIT_PATH | /mnt/inspolaris/bgmg/thinkphp/library/traits/ |
ROOT_PATH | /mnt/inspolaris/bgmg/ |
EXTEND_PATH | /mnt/inspolaris/bgmg/extend/ |
VENDOR_PATH | /mnt/inspolaris/bgmg/vendor/ |
RUNTIME_PATH | /mnt/inspolaris/bgmg/runtime/ |
LOG_PATH | /mnt/inspolaris/bgmg/runtime/log/ |
CACHE_PATH | /mnt/inspolaris/bgmg/runtime/cache/ |
TEMP_PATH | /mnt/inspolaris/bgmg/runtime/temp/ |
CONF_PATH | /mnt/inspolaris/bgmg/detect/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |