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);
}
PHPSESSID | d3daeljd5kkufj8h3cqcn0jugq |
DOCUMENT_ROOT | /usr/home/hyu7522520001/htdocs/public |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
HTTP_ACCEPT | */* |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_COOKIE | PHPSESSID=d3daeljd5kkufj8h3cqcn0jugq |
HTTP_HOST | www.foiadrone.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html) |
PATH | /bin |
PHPRC | /var/www/php74/hichina_ini/hyu7522520001 |
QUERY_STRING | |
REDIRECT_DOCUMENT_ROOT | /usr/home/hyu7522520001/htdocs/public |
REDIRECT_GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_HTTPS | on |
REDIRECT_HTTP_ACCEPT | */* |
REDIRECT_HTTP_ACCEPT_ENCODING | gzip |
REDIRECT_HTTP_COOKIE | PHPSESSID=d3daeljd5kkufj8h3cqcn0jugq |
REDIRECT_HTTP_HOST | www.foiadrone.com |
REDIRECT_HTTP_USER_AGENT | Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html) |
REDIRECT_PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
REDIRECT_PATH_INFO | /shouce |
REDIRECT_PATH_TRANSLATED | redirect:/index.php/shouce |
REDIRECT_QUERY_STRING | |
REDIRECT_REMOTE_ADDR | 23.231.76.82 |
REDIRECT_REMOTE_PORT | 33252 |
REDIRECT_REQUEST_METHOD | GET |
REDIRECT_REQUEST_URI | /download/shouce |
REDIRECT_SCRIPT_FILENAME | /usr/home/hyu7522520001/htdocs/public/download |
REDIRECT_SCRIPT_NAME | /download |
REDIRECT_SERVER_ADDR | 10.21.143.15 |
REDIRECT_SERVER_ADMIN | webmaster@hyu7522520001.my3w.com |
REDIRECT_SERVER_NAME | www.foiadrone.com |
REDIRECT_SERVER_PORT | 443 |
REDIRECT_SERVER_PROTOCOL | HTTP/1.1 |
REDIRECT_SERVER_SIGNATURE | |
REDIRECT_SERVER_SOFTWARE | Apache |
REDIRECT_SSL_TLS_SNI | www.foiadrone.com |
REDIRECT_STATUS | 200 |
REDIRECT_TZ | Asia/Shanghai |
REDIRECT_UNIQUE_ID | Z2e7dgoVjw8AD4UaXNEAAAAA |
REDIRECT_URL | /download/shouce |
REMOTE_ADDR | 23.231.76.82 |
REMOTE_PORT | 33252 |
REQUEST_METHOD | GET |
REQUEST_URI | /download/shouce |
SCRIPT_FILENAME | /usr/home/hyu7522520001/htdocs/public/index.php |
SCRIPT_NAME | /index.php |
SERVER_ADDR | 10.21.143.15 |
SERVER_ADMIN | webmaster@hyu7522520001.my3w.com |
SERVER_NAME | www.foiadrone.com |
SERVER_PORT | 443 |
SERVER_PROTOCOL | HTTP/1.1 |
SERVER_SIGNATURE | |
SERVER_SOFTWARE | Apache |
SSL_TLS_SNI | www.foiadrone.com |
TZ | Asia/Shanghai |
UNIQUE_ID | Z2e7dgoVjw8AD4UaXNEAAAAA |
ORIG_PATH_INFO | /download/shouce |
ORIG_PATH_TRANSLATED | /usr/home/hyu7522520001/htdocs/public/index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1734851446.6733 |
REQUEST_TIME | 1734851446 |
IF_PUBLIC | true |
ROOT_PATH | /usr/home/hyu7522520001/htdocs/public/../ |
APP_PATH | /usr/home/hyu7522520001/htdocs/public/../application/ |
DS | / |
ADDON_PATH | /usr/home/hyu7522520001/htdocs/public/../addons/ |
ROOT_URL | / |
TEMPLATE_PATH | /usr/home/hyu7522520001/htdocs/public/../templates/ |
WEBSCAN_U_KEY | fe6f9a5a18ffc667373f461bc9379d2c |
WEBSCAN_API_LOG | http://safe.webscan.360.cn/papi/log/?key=fe6f9a5a18ffc667373f461bc9379d2c |
WEBSCAN_UPDATE_FILE | http://safe.webscan.360.cn/papi/update/?key=fe6f9a5a18ffc667373f461bc9379d2c |
WEBSCAN_VERSION | 0.1.2.6 |
WEBSCAN_MD5 | 9e5c307374031bfabf49d7ab7e4737c7 |
FILTER_VALIDATE_BOOL | 258 |
U_IDNA_PROHIBITED_ERROR | 66560 |
U_IDNA_ERROR_START | 66560 |
U_IDNA_UNASSIGNED_ERROR | 66561 |
U_IDNA_CHECK_BIDI_ERROR | 66562 |
U_IDNA_STD3_ASCII_RULES_ERROR | 66563 |
U_IDNA_ACE_PREFIX_ERROR | 66564 |
U_IDNA_VERIFICATION_ERROR | 66565 |
U_IDNA_LABEL_TOO_LONG_ERROR | 66566 |
U_IDNA_ZERO_LENGTH_LABEL_ERROR | 66567 |
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR | 66568 |
U_IDNA_ERROR_LIMIT | 66569 |
U_STRINGPREP_PROHIBITED_ERROR | 66560 |
U_STRINGPREP_UNASSIGNED_ERROR | 66561 |
U_STRINGPREP_CHECK_BIDI_ERROR | 66562 |
IDNA_DEFAULT | 0 |
IDNA_ALLOW_UNASSIGNED | 1 |
IDNA_USE_STD3_RULES | 2 |
IDNA_CHECK_BIDI | 4 |
IDNA_CHECK_CONTEXTJ | 8 |
IDNA_NONTRANSITIONAL_TO_ASCII | 16 |
IDNA_NONTRANSITIONAL_TO_UNICODE | 32 |
INTL_IDNA_VARIANT_2003 | 0 |
INTL_IDNA_VARIANT_UTS46 | 1 |
IDNA_ERROR_EMPTY_LABEL | 1 |
IDNA_ERROR_LABEL_TOO_LONG | 2 |
IDNA_ERROR_DOMAIN_NAME_TOO_LONG | 4 |
IDNA_ERROR_LEADING_HYPHEN | 8 |
IDNA_ERROR_TRAILING_HYPHEN | 16 |
IDNA_ERROR_HYPHEN_3_4 | 32 |
IDNA_ERROR_LEADING_COMBINING_MARK | 64 |
IDNA_ERROR_DISALLOWED | 128 |
IDNA_ERROR_PUNYCODE | 256 |
IDNA_ERROR_LABEL_HAS_DOT | 512 |
IDNA_ERROR_INVALID_ACE_LABEL | 1024 |
IDNA_ERROR_BIDI | 2048 |
IDNA_ERROR_CONTEXTJ | 4096 |
HTMLPURIFIER_PREFIX | /usr/home/hyu7522520001/htdocs/vendor/ezyang/htmlpurifier/library |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |