*/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);}// 记录视图信息App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');$this->template->fetch($template, $data, $config);}/*** 渲染模板内容* @access public
| think | { "member": { "id": 0 } } |
| USER | www |
| HOME | /home/www |
| HTTP_ACCEPT_ENCODING | br,gzip |
| HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
| HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
| HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
| PATH_INFO | /index/picture/lists/category_id/index.html |
| HTTP_HOST | shengkangfood.com |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | shengkangfood.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 154.83.12.235 |
| REMOTE_PORT | 44560 |
| REMOTE_ADDR | 18.97.14.84 |
| SERVER_SOFTWARE | nginx/1.26.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/2.0 |
| DOCUMENT_ROOT | /www/wwwroot/shengkangfood.com |
| DOCUMENT_URI | /index.php/index/picture/lists/category_id/index.html |
| REQUEST_URI | /index.php/index/picture/lists/category_id/index.html |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| SCRIPT_FILENAME | /www/wwwroot/shengkangfood.com/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php/index/picture/lists/category_id/index.html |
| REQUEST_TIME_FLOAT | 1768576643.0133 |
| REQUEST_TIME | 1768576643 |
| LZ_VERSION | v1.1.5 |
| APP_PATH | /www/wwwroot/shengkangfood.com/application/ |
| THINK_VERSION | 5.0.3 |
| THINK_START_TIME | 1768576643.0137 |
| THINK_START_MEM | 404240 |
| EXT | .php |
| DS | / |
| THINK_PATH | /www/wwwroot/shengkangfood.com/thinkphp/ |
| LIB_PATH | /www/wwwroot/shengkangfood.com/thinkphp/library/ |
| CORE_PATH | /www/wwwroot/shengkangfood.com/thinkphp/library/think/ |
| TRAIT_PATH | /www/wwwroot/shengkangfood.com/thinkphp/library/traits/ |
| ROOT_PATH | /www/wwwroot/shengkangfood.com/ |
| EXTEND_PATH | /www/wwwroot/shengkangfood.com/extend/ |
| VENDOR_PATH | /www/wwwroot/shengkangfood.com/vendor/ |
| RUNTIME_PATH | /www/wwwroot/shengkangfood.com/runtime/ |
| LOG_PATH | /www/wwwroot/shengkangfood.com/runtime/log/ |
| CACHE_PATH | /www/wwwroot/shengkangfood.com/runtime/cache/ |
| TEMP_PATH | /www/wwwroot/shengkangfood.com/runtime/temp/ |
| CONF_PATH | /www/wwwroot/shengkangfood.com/application/ |
| CONF_EXT | .php |
| ENV_PREFIX | PHP_ |
| IS_CLI | false |
| IS_WIN | false |