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);
}
DOCUMENT_ROOT | /usr/home/byu5287080001/htdocs |
GATEWAY_INTERFACE | CGI/1.1 |
HTTP_ACCEPT | */* |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_HOST | www.jbhpharma.com |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
PATH | /bin |
PHPRC | /var/www/php70/hichina_ini/byu5287080001 |
QUERY_STRING | s=/net/zw/ |
REDIRECT_DOCUMENT_ROOT | /usr/home/byu5287080001/htdocs |
REDIRECT_GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_HTTP_ACCEPT | */* |
REDIRECT_HTTP_ACCEPT_ENCODING | gzip |
REDIRECT_HTTP_HOST | www.jbhpharma.com |
REDIRECT_HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
REDIRECT_PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
REDIRECT_PATH_INFO | /zw/ |
REDIRECT_PATH_TRANSLATED | redirect:/index.php/ |
REDIRECT_QUERY_STRING | s=/net/zw/ |
REDIRECT_REMOTE_ADDR | 104.253.131.2 |
REDIRECT_REMOTE_PORT | 48946 |
REDIRECT_REQUEST_METHOD | GET |
REDIRECT_REQUEST_URI | /net/zw/ |
REDIRECT_SCRIPT_FILENAME | /usr/home/byu5287080001/htdocs/net |
REDIRECT_SCRIPT_NAME | /net |
REDIRECT_SCRIPT_URI | /net/zw/ |
REDIRECT_SCRIPT_URL | /net/zw/ |
REDIRECT_SERVER_ADDR | 10.22.96.111 |
REDIRECT_SERVER_ADMIN | webmaster@byu5287080001.my3w.com |
REDIRECT_SERVER_NAME | www.jbhpharma.com |
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 | Z06KnAoWYG8AAV975b4AAAAI |
REDIRECT_URL | /net/zw/ |
REMOTE_ADDR | 104.253.131.2 |
REMOTE_PORT | 48946 |
REQUEST_METHOD | GET |
REQUEST_URI | /net/zw/ |
SCRIPT_FILENAME | /usr/home/byu5287080001/htdocs/index.php |
SCRIPT_NAME | /index.php |
SCRIPT_URI | /net/zw/ |
SCRIPT_URL | /net/zw/ |
SERVER_ADDR | 10.22.96.111 |
SERVER_ADMIN | webmaster@byu5287080001.my3w.com |
SERVER_NAME | www.jbhpharma.com |
SERVER_PORT | 80 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
TZ | Asia/Shanghai |
UNIQUE_ID | Z06KnAoWYG8AAV975b4AAAAI |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1733200540.2398 |
REQUEST_TIME | 1733200540 |
APP_VERSION | 2.0.0 |
APP_NAME | EndCMS内容管理 |
UPLOAD_DIR | /usr/home/byu5287080001/htdocs/uploads/ |
APP_PATH | /usr/home/byu5287080001/htdocs/application |
DEFAULT_THUMB | /static/images/default.png |