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);
}
mike_home_lang | chs |
REDIRECT_UNIQUE_ID | ZgZE4IfN1f8K4@YwbJBh3AAAABE |
REDIRECT_PHPRC | /home/haixinghe3hkayisxpignkguhye/others |
REDIRECT_HANDLER | php-cgi |
REDIRECT_STATUS | 200 |
UNIQUE_ID | ZgZE4IfN1f8K4@YwbJBh3AAAABE |
PHPRC | /home/haixinghe3hkayisxpignkguhye/others |
HTTP_X_FORWARDED_FOR | 44.223.5.218 |
HTTP_X_REAL_IP | 211.149.140.180 |
HTTP_HOST | www.hxhfan.com |
HTTP_CONNECTION | close |
HTTP_FROM_HTTPS | on |
HTTP_SSL_FLAG | SSL |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_X_FORWARDED_PROTO | https |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PATH | /sbin:/usr/sbin:/bin:/usr/bin |
SERVER_SIGNATURE | <address>Apache Server at www.hxhfan.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.hxhfan.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 44.223.5.218 |
DOCUMENT_ROOT | /home/haixinghe3hkayisxpignkguhye/wwwroot |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | /php-run-as-cgi |
CONTEXT_DOCUMENT_ROOT | /usr/php7.2/bin |
SERVER_ADMIN | webmaster@haixinghe |
SCRIPT_FILENAME | /home/haixinghe3hkayisxpignkguhye/wwwroot/index.php |
REMOTE_PORT | 50454 |
REDIRECT_URL | /index.php/show/462.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /index.php/show/462.html |
SCRIPT_NAME | /index.php |
PATH_INFO | /show/462.html |
PATH_TRANSLATED | /home/haixinghe3hkayisxpignkguhye/wwwroot/show/462.html |
ORIG_PATH_INFO | /index.php/show/462.html |
ORIG_SCRIPT_NAME | /php-run-as-cgi/php-cgi |
ORIG_SCRIPT_FILENAME | /usr/php7.2/bin/php-cgi |
ORIG_PATH_TRANSLATED | /home/haixinghe3hkayisxpignkguhye/wwwroot/index.php/show/462.html |
PHP_SELF | /index.php/show/462.html |
REQUEST_TIME_FLOAT | 1711686880.1608 |
REQUEST_TIME | 1711686880 |