}
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 模板内容
PHPSESSID | 4e27f19812a067cd134415047519c173 |
current_home_lang | zh-cn |
last_time | 1741648102 |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=4e27f19812a067cd134415047519c173 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.yongzhi99.com |
HTTP_USER_AGENT | Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.6943.53 Mobile Safari/537.36 (compatible; GoogleOther) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.yongzhi99.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.30.201.178 |
REMOTE_PORT | 47978 |
REMOTE_ADDR | 205.164.7.90 |
SERVER_SOFTWARE | nginx/1.26.3 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/www.yongzhi99.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /user/login/index.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/user/login/index.html |
SCRIPT_FILENAME | /www/wwwroot/www.yongzhi99.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1741648102.7603 |
REQUEST_TIME | 1741648102 |