[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/home/www/wwwroot/hbxwcb/application/index/view/cnew/hd_list.html

  1. */
  2. public function fetch($template, $data = [], $config = [])
  3. {
  4. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  5. // 获取模板文件名
  6. $template = $this->parseTemplate($template);
  7. }
  8. // 模板不存在 抛出异常
  9. if (!is_file($template)) {
  10. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  11. }
  12. // 记录视图信息
  13. App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
  14. $this->template->fetch($template, $data, $config);
  15. }
  16. /**
  17. * 渲染模板内容
  18. * @access public

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('/home/www/wwwroot/hb...', ['category' => [['id' => 1, 'title' => '新万博体育网页版新闻', 'user_id' => null, ...], ['id' => 2, 'title' => '热点时评', 'user_id' => null, ...], ['id' => 3, 'title' => '农业农村', 'user_id' => null, ...], ...], 'cate_title' => null, 'seo' => ['id' => 1, 'ctitle' => '...', 'cdescription' => '...', ...], ...], []) in View.php line 163
  3. at View->fetch('', ['category' => [['id' => 1, 'title' => '新万博体育网页版新闻', 'user_id' => null, ...], ['id' => 2, 'title' => '热点时评', 'user_id' => null, ...], ['id' => 3, 'title' => '农业农村', 'user_id' => null, ...], ...], 'cate_title' => null, 'seo' => ['id' => 1, 'ctitle' => '...', 'cdescription' => '...', ...], ...], ['__ROOT__' => '', '__URL__' => '/index/cnew', '__STATIC__' => '/static', ...]) in View.php line 36
  4. at View->output('') in Response.php line 309
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 19
  7. at require('/home/www/wwwroot/hb...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.hbxwcb.net
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
/index/cnew/hd_list.html
REDIRECT_STATUS
200
SERVER_NAME
hbxwcb.net
SERVER_PORT
80
SERVER_ADDR
122.114.52.112
REMOTE_PORT
20002
REMOTE_ADDR
103.239.98.219
SERVER_SOFTWARE
nginx/1.19.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/hbxwcb
DOCUMENT_URI
/index.php
REQUEST_URI
/index/cnew/hd_list.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/cnew/hd_list.html
SCRIPT_FILENAME
/www/wwwroot/hbxwcb/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1603592442.2612
REQUEST_TIME
1603592442
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/www/wwwroot/hbxwcb/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1603592442.262
THINK_START_MEM
367312
EXT
.php
DS
/
THINK_PATH
/home/www/wwwroot/hbxwcb/thinkphp/
LIB_PATH
/home/www/wwwroot/hbxwcb/thinkphp/library/
CORE_PATH
/home/www/wwwroot/hbxwcb/thinkphp/library/think/
TRAIT_PATH
/home/www/wwwroot/hbxwcb/thinkphp/library/traits/
ROOT_PATH
/home/www/wwwroot/hbxwcb/
EXTEND_PATH
/home/www/wwwroot/hbxwcb/extend/
VENDOR_PATH
/home/www/wwwroot/hbxwcb/vendor/
RUNTIME_PATH
/home/www/wwwroot/hbxwcb/runtime/
LOG_PATH
/home/www/wwwroot/hbxwcb/runtime/log/
CACHE_PATH
/home/www/wwwroot/hbxwcb/runtime/cache/
TEMP_PATH
/home/www/wwwroot/hbxwcb/runtime/temp/
CONF_PATH
/home/www/wwwroot/hbxwcb/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false