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);}
| USER | www |
| HOME | /home/www |
| HTTP_CONNECTION | keep-alive |
| HTTP_HOST | www.xsdyp123.com |
| HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.9 |
| HTTP_ACCEPT_ENCODING | gzip, deflate |
| HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
| HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 |
| HTTP_UPGRADE_INSECURE_REQUESTS | 1 |
| PATH_INFO | |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | www.xsdyp123.com |
| SERVER_PORT | 80 |
| SERVER_ADDR | 172.23.204.212 |
| REMOTE_PORT | 15469 |
| REMOTE_ADDR | 169.197.142.208 |
| SERVER_SOFTWARE | nginx/1.26.2 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REQUEST_SCHEME | http |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/wwwroot/www.xsdyp123.com/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | / |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| SCRIPT_FILENAME | /www/wwwroot/www.xsdyp123.com/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1752216713.3989 |
| REQUEST_TIME | 1752216713 |
| IF_PUBLIC | true |
| ROOT_PATH | /www/wwwroot/www.xsdyp123.com/public/../ |
| APP_PATH | /www/wwwroot/www.xsdyp123.com/public/../application/ |
| DS | / |
| ADDON_PATH | /www/wwwroot/www.xsdyp123.com/public/../addons/ |
| ROOT_URL | / |
| TEMPLATE_PATH | /www/wwwroot/www.xsdyp123.com/public/../templates/ |
| PINYIN_DEFAULT | 4096 |
| PINYIN_TONE | 2 |
| PINYIN_NO_TONE | 4 |
| PINYIN_ASCII_TONE | 8 |
| PINYIN_NAME | 16 |
| PINYIN_KEEP_NUMBER | 32 |
| PINYIN_KEEP_ENGLISH | 64 |
| PINYIN_UMLAUT_V | 128 |
| PINYIN_KEEP_PUNCTUATION | 256 |