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);}
| acw_tc | 2ff3857217913800110204985e244aaa85c07e46ad0fad4cfcee246fca04be |
| 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 | 60dbe3d80054b6de021d14fa2b78c1d3 |
| HTTP_X_SINFO | on |
| HTTP_EAGLEEYE_RPCID | 0.1 |
| HTTP_COOKIE | acw_tc=2ff3857217913800110204985e244aaa85c07e46ad0fad4cfcee246fca04be |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT | */* |
| HTTP_EAGLEEYE_TRACEID | 2ff3857217913800112634987e244a |
| HTTP_X_FORWARDED_FOR | 50.2.185.58 |
| HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 |
| HTTP_HOST | www.breo.com |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | www.breo.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 172.31.106.39 |
| REMOTE_PORT | 43190 |
| 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 | 1791380011.2649 |
| REQUEST_TIME | 1791380011 |