}
if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
// 获取模板文件名
$template = $this->parseTemplate($template);
}
// 模板不存在 抛出异常
if (!is_file($template)) {
throw new TemplateNotFoundException('template not exists:' . $template, $template);
}
$this->template->fetch($template, $data);
}
/**
* 渲染模板内容
* @access public
* @param string $template 模板内容
__token__ | 35501be23b638991cfb6f2b5a15714ea |
USER | www |
HOME | /home/www |
HTTP_CF_IPCOUNTRY | US |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_CONNECTING_IP | 44.221.43.88 |
HTTP_REFERER | http://cnhuataigroup.com/index.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_RAY | 86b90fe6ff615848-IAD |
HTTP_X_FORWARDED_FOR | 44.221.43.88 |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_CONNECTION | Keep-Alive |
HTTP_HOST | cnhuataigroup.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | cnhuataigroup.com |
SERVER_PORT | 80 |
SERVER_ADDR | 104.128.238.174 |
REMOTE_PORT | 61070 |
REMOTE_ADDR | 172.70.135.98 |
SERVER_SOFTWARE | nginx/1.22.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/cnhuataigroup.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index.html |
SCRIPT_FILENAME | /www/wwwroot/cnhuataigroup.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711644028.0372 |
REQUEST_TIME | 1711644028 |