}
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 模板内容
ssid | c4dac914f5313296d504f96f050c0884 |
lang | zh-cn |
PHPSESSID | sc768afo19efdjrhcr2nvnh2l3 |
X_CACHE_KEY | dfd19bfc65ba2cd7056f28e6e93de33f |
USER | www |
HOME | /home/www |
HTTP_COOKIE | ssid=c4dac914f5313296d504f96f050c0884; lang=zh-cn; PHPSESSID=sc768afo19efdjrhcr2nvnh2l3; X_CACHE_KEY=dfd19bfc65ba2cd7056f28e6e93de33f |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.worldlh.cn |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | worldlh.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.23.37.206 |
REMOTE_PORT | 38544 |
REMOTE_ADDR | 173.245.87.98 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/worldlh.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /Notice.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/Notice.html |
SCRIPT_FILENAME | /www/wwwroot/worldlh.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1725838440.6669 |
REQUEST_TIME | 1725838440 |