->setAction($this->actionName);
}
public function exec()
{
try {
// 实例化控制器
$instance = $this->controller($this->controller);
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}
// 注册控制器中间件
$this->registerControllerMiddleware($instance);
return $this->app->middleware->pipeline('controller')
->send($this->request)
->then(function () use ($instance) {
// 获取当前操作名
r | default/column/index |
col | 100174 |
page | 2 |
DOCUMENT_ROOT | /usr/home/syu5482630001/htdocs |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_HOST | ccari.cn |
HTTP_USER_AGENT | claudebot |
PATH | /bin |
PHPRC | /var/www/php80/hichina_ini/syu5482630001 |
QUERY_STRING | r=default/column/index&col=100174&page=2 |
REDIRECT_STATUS | 200 |
REMOTE_ADDR | 3.80.129.195 |
REMOTE_PORT | 40702 |
REQUEST_METHOD | GET |
REQUEST_URI | /index.php?r=default/column/index&col=100174&page=2 |
SCRIPT_FILENAME | /usr/home/syu5482630001/htdocs/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | http://ccari.cn/index.php |
SCRIPT_URL | /index.php |
SERVER_ADDR | 10.29.175.182 |
SERVER_ADMIN | webmaster@syu5482630001.my3w.com |
SERVER_NAME | ccari.cn |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Asia/Shanghai |
UNIQUE_ID | ZgX7DQodr7YAFGJfLK8AAAAK |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711667981.7479 |
REQUEST_TIME | 1711667981 |