public function fetch($template, $data = [], $config = []){if ('' == pathinfo($template, PATHINFO_EXTENSION)) {// 获取模板文件名$template = $this->parseTemplate($template);}// 模板不存在 抛出异常if (!is_file($template)) {throw new TemplateNotFoundException('template not exists:' . $template, $template);}// 记录视图信息$this->app->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');$this->template->fetch($template, $data, $config);}
| PHPSESSID | 14e46b234d74e24e61f15f6e8f6bf2b2 |
| acw_tc | 2ff3857217876013412791455e24239f5dbaf7b5de8629273e6ba1f9eeedff |
| USER | nginx |
| HOME | /var/lib/nginx |
| HTTP_X_CLIENT_IP | 50.2.185.58 |
| HTTP_X_TRUE_IP | 50.2.185.58 |
| HTTP_X_FORWARDED_PROTO | https |
| HTTP_WL_PROXY_CLIENT_IP | 50.2.185.58 |
| HTTP_WEB_SERVER_TYPE | nginx |
| HTTP_X_REAL_IP | 50.2.185.58 |
| HTTP_X5_UUID | 39eda194a492cafff6e7bc443d4d569e |
| HTTP_X_SINFO | on |
| HTTP_EAGLEEYE_RPCID | 0.1 |
| HTTP_COOKIE | PHPSESSID=14e46b234d74e24e61f15f6e8f6bf2b2; acw_tc=2ff3857217876013412791455e24239f5dbaf7b5de8629273e6ba1f9eeedff |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT | */* |
| HTTP_EAGLEEYE_TRACEID | 2ff3857217876013854441796e23fc |
| HTTP_X_FORWARDED_FOR | 50.2.185.58 |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_HOST | www.breo.com |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | www.breo.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 172.31.106.39 |
| REMOTE_PORT | 52086 |
| REMOTE_ADDR | 50.2.185.58 |
| SERVER_SOFTWARE | nginx/1.20.2 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/html/public |
| DOCUMENT_URI | /index.php/index/category/index/id/105.html |
| REQUEST_URI | /index/category/index/id/105.html |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| PATH_TRANSLATED | /www/html/public/index/category/index/id/105.html |
| PATH_INFO | /index/category/index/id/105.html |
| SCRIPT_FILENAME | /www/html/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php/index/category/index/id/105.html |
| REQUEST_TIME_FLOAT | 1787601385.4453 |
| REQUEST_TIME | 1787601385 |