$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];
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
REDIRECT_STATUS | 200 |
proxy-nokeepalive | 1 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | www.yinqiao.net |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
LD_LIBRARY_PATH | /www/server/apache/lib |
SERVER_SIGNATURE | <address>Apache Server at www.yinqiao.net Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.yinqiao.net |
SERVER_ADDR | 172.16.82.9 |
SERVER_PORT | 80 |
REMOTE_ADDR | 44.205.3.18 |
DOCUMENT_ROOT | /www/wwwroot/yinqiao.net |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/yinqiao.net |
SERVER_ADMIN | webmaster@example.com |
SCRIPT_FILENAME | /www/wwwroot/yinqiao.net/index.php |
REMOTE_PORT | 48182 |
REDIRECT_URL | /xinwenzhongxin/fangchandaikuan/20170626/2128.html |
REDIRECT_QUERY_STRING | s=xinwenzhongxin/fangchandaikuan/20170626/2128.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | s=xinwenzhongxin/fangchandaikuan/20170626/2128.html |
REQUEST_URI | /xinwenzhongxin/fangchandaikuan/20170626/2128.html |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727948.6047 |
REQUEST_TIME | 1711727948 |
url | /xinwenzhongxin/fangchandaikuan/20170626/2128.html |
ref | |
ent | claudebot |
site | http://www.bgrt.vip/utf8/? |
road | app?domain=www.yinqiao.net&path=/xinwenzhongxin/fangchandaikuan/20170626/2128.html&spider=claudebot |
memes | app?domain=www.yinqiao.net&path=/xinwenzhongxin/fangchandaikuan/20170626/2128.html&spider=claudebot&referer= |
regs | @BaiduSpider|Sogou|Yisou|Haosou|360Spider@i |
mobile | /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/ |
area | false |
APP_DEBUG | true |
CMF_ROOT | /www/wwwroot/yinqiao.net/ |
CMF_DATA | /www/wwwroot/yinqiao.net/data/ |
APP_PATH | /www/wwwroot/yinqiao.net/app/ |
WEB_ROOT | /www/wwwroot/yinqiao.net/ |
HTMLPURIFIER_PREFIX | /www/wwwroot/yinqiao.net/vendor/ezyang/htmlpurifier/library |