*/
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);
}
// 记录视图信息
App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
$this->template->fetch($template, $data, $config);
}
/**
* 渲染模板内容
* @access public
PHPSESSID | 3qrscr9lqg807a2f1tmlqkqm11 |
DOCUMENT_ROOT | /usr/home/hyu05001/htdocs |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_COOKIE | PHPSESSID=3qrscr9lqg807a2f1tmlqkqm11 |
HTTP_HOST | www.dawn-biotech.com.cn |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
PATH | /bin |
PHPRC | /var/www/php55/hichina_ini/hyu05001 |
QUERY_STRING | |
REDIRECT_DOCUMENT_ROOT | /usr/home/hyu05001/htdocs |
REDIRECT_GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_HTTP_ACCEPT | */* |
REDIRECT_HTTP_ACCEPT_ENCODING | gzip |
REDIRECT_HTTP_COOKIE | PHPSESSID=3qrscr9lqg807a2f1tmlqkqm11 |
REDIRECT_HTTP_HOST | www.dawn-biotech.com.cn |
REDIRECT_HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
REDIRECT_PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
REDIRECT_PATH_INFO | /19083059.html |
REDIRECT_PATH_TRANSLATED | redirect:/default.php/19083059.html |
REDIRECT_QUERY_STRING | |
REDIRECT_REMOTE_ADDR | 107.158.145.214 |
REDIRECT_REMOTE_PORT | 33796 |
REDIRECT_REQUEST_METHOD | GET |
REDIRECT_REQUEST_URI | /article/19083059.html |
REDIRECT_SCRIPT_FILENAME | /usr/home/hyu05001/htdocs/article |
REDIRECT_SCRIPT_NAME | /article |
REDIRECT_SERVER_ADDR | 10.21.112.12 |
REDIRECT_SERVER_ADMIN | webmaster@dawn-biotech.com.cn |
REDIRECT_SERVER_NAME | www.dawn-biotech.com.cn |
REDIRECT_SERVER_PORT | 80 |
REDIRECT_SERVER_PROTOCOL | HTTP/1.1 |
REDIRECT_SERVER_SIGNATURE | |
REDIRECT_SERVER_SOFTWARE | Apache |
REDIRECT_STATUS | 200 |
REDIRECT_TZ | Asia/Shanghai |
REDIRECT_UNIQUE_ID | Ziu0tQoVcAwAOLk@5zEAAAAL |
REDIRECT_URL | /article/19083059.html |
REMOTE_ADDR | 107.158.145.214 |
REMOTE_PORT | 33796 |
REQUEST_METHOD | GET |
REQUEST_URI | /article/19083059.html |
SCRIPT_FILENAME | /usr/home/hyu05001/htdocs/default.php |
SCRIPT_NAME | /default.php |
SERVER_ADDR | 10.21.112.12 |
SERVER_ADMIN | webmaster@dawn-biotech.com.cn |
SERVER_NAME | www.dawn-biotech.com.cn |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Asia/Shanghai |
UNIQUE_ID | Ziu0tQoVcAwAOLk@5zEAAAAL |
ORIG_PATH_INFO | /article/19083059.html |
ORIG_PATH_TRANSLATED | /usr/home/hyu05001/htdocs/default.php |
PHP_SELF | /default.php |
REQUEST_TIME_FLOAT | 1714140341.235 |
REQUEST_TIME | 1714140341 |
PATH_INFO | /article/19083059.html |
APP_PATH | /usr/home/hyu05001/htdocs/application/ |
ADMINIMG | /usr/home/hyu05001/htdocs/public/static/admin/uploads/cateimg/ |
INDEXIMGS | /usr/home/hyu05001/htdocs/public/static/index/uploads/cateimg/ |
ADMIN_STATIC | /usr/home/hyu05001/htdocs/public/static/admin/ |
INDEXIMG | /usr/home/hyu05001/htdocs/public/static/index/uploads/img/ |
INDEXATT | /usr/home/hyu05001/htdocs/public/static/index/uploads/att/ |
INDEXAD | /usr/home/hyu05001/htdocs/public/static/index/uploads/ad/ |
APP_DEBUG | true |
THINK_VERSION | 5.0.6 |
THINK_START_TIME | 1714140341.2355 |
THINK_START_MEM | 250864 |
EXT | .php |
DS | / |
THINK_PATH | /usr/home/hyu05001/htdocs/thinkphp/ |
LIB_PATH | /usr/home/hyu05001/htdocs/thinkphp/library/ |
CORE_PATH | /usr/home/hyu05001/htdocs/thinkphp/library/think/ |
TRAIT_PATH | /usr/home/hyu05001/htdocs/thinkphp/library/traits/ |
ROOT_PATH | /usr/home/hyu05001/htdocs/ |
EXTEND_PATH | /usr/home/hyu05001/htdocs/extend/ |
VENDOR_PATH | /usr/home/hyu05001/htdocs/vendor/ |
RUNTIME_PATH | /usr/home/hyu05001/htdocs/runtime/ |
LOG_PATH | /usr/home/hyu05001/htdocs/runtime/log/ |
CACHE_PATH | /usr/home/hyu05001/htdocs/runtime/cache/ |
TEMP_PATH | /usr/home/hyu05001/htdocs/runtime/temp/ |
CONF_PATH | /usr/home/hyu05001/htdocs/application/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |