[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:../application/home/view/pc/htf2015/xinwen/1939188.html

  1. public function fetch($template, $data = [], $config = [])
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. // 记录视图信息
  12. Container::get('app')
  13. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  14. $this->template->fetch($template, $data, $config);
  15. }

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('/htf2015/xinwen/1939...', [], []) in View.php line 175
  3. at View->fetch('/htf2015/xinwen/1939...', []) in View.php line 38
  4. at View->output('/htf2015/xinwen/1939...') in Response.php line 376
  5. at Response->getContent() in Response.php line 121
  6. at Response->send() in index.php line 71

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
_vstime 1585396118
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/newhaotoufa/public/index.php
QUERY_STRING s=/xinwen/1939188.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /xinwen/1939188.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/newhaotoufa/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME https
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.14.0
REMOTE_ADDR 23.19.76.153
REMOTE_PORT 56482
SERVER_ADDR 172.17.8.34
SERVER_PORT 443
SERVER_NAME www.haotoufa.com
PHP_ADMIN_VALUE open_basedir=NULL
REDIRECT_STATUS 200
PATH_INFO /xinwen/1939188.html
HTTP_HOST www.haotoufa.com
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2)
HTTP_ACCEPT */*
HTTP_REFERER /
HTTP_COOKIE _vstime=1585396118
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1585396118.935
REQUEST_TIME 1585396118
Environment Variablesempty
ThinkPHP Constants
DATA_PATH ../runtime/Data/
PLUGIN_PATH ../plugins/
APP_PATH /../application/
VIEW_PATH ../application/home/view/pc/
MAX_MENU_LENGTH 3
MAX_SUB_MENU_LENGTH 5