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);
}
cms_from_referee | http://www.beyongx.com/cms/docs/viewdocs/aid/100061.html |
cms_entrance_url | https://www.beyongx.com/cms/docs/viewdocs/aid/100061.html |
USER | apache |
HOME | /usr/share/httpd |
HTTP_HOST | www.beyongx.com |
HTTP_REFERER | http://www.beyongx.com/cms/docs/viewdocs/aid/100061.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.beyongx.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.19.200.142 |
REMOTE_PORT | 34538 |
REMOTE_ADDR | 34.236.152.203 |
SERVER_SOFTWARE | nginx/1.21.4 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/web/www.beyongx.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /cms/docs/viewdocs/aid/100061.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//cms/docs/viewdocs/aid/100061.html |
PATH_INFO | |
SCRIPT_FILENAME | /data/web/www.beyongx.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710832216.5746 |
REQUEST_TIME | 1710832216 |
CMS_PREFIX | cms_ |
CACHE_SEPARATOR | _ |
FILTER_VALIDATE_BOOL | 258 |
HTMLPURIFIER_PREFIX | /data/web/www.beyongx.com/vendor/ezyang/htmlpurifier/library |