}
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 模板内容
last_time | 1711688989 |
login_http_referer | http://blog.wien.ren/portal/article/dolike/id/37.html |
USER | www |
HOME | /home/www |
HTTP_HOST | blog.wien.ren |
HTTP_REFERER | http://blog.wien.ren/portal/article/dolike/id/37.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | blog.wien.ren |
SERVER_PORT | 80 |
SERVER_ADDR | 172.17.32.193 |
REMOTE_PORT | 47766 |
REMOTE_ADDR | 3.91.249.156 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/blog.wien.ren/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/blog.wien.ren/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711688989.2704 |
REQUEST_TIME | 1711688989 |