[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/www/wwwroot/hnkunya.com/app/home/view/default/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 80
  2. at Think->fetch(':list', ['lang' => 'zh-cn', 'site_name' => '...', 'site_host' => 'http://localhost/', ...], []) in View.php line 162
  3. at View->fetch(':list') in Listn.php line 48
  4. at Listn->index()
  5. at ReflectionMethod->invokeArgs(object(Listn), []) in App.php line 234
  6. at App::invokeMethod([object(Listn), 'index'], []) in App.php line 401
  7. at App::module([null, 'Listn', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 140
  8. at App::run() in start.php line 18
  9. at require('/www/wwwroot/hnkunya...') in index.php line 18

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/hnkunya.com/index.php
QUERY_STRING
s=/list/2.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/list/2.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/hnkunya.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
161.123.173.187
REMOTE_PORT
20000
SERVER_ADDR
172.17.156.94
SERVER_PORT
80
SERVER_NAME
hnkunya.com
REDIRECT_STATUS
200
PATH_INFO
/list/2.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.hnkunya.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1601374320.9208
REQUEST_TIME
1601374320
Environment Variablesempty
ThinkPHP Constants
APP_PATH
/www/wwwroot/hnkunya.com/app/
RUNTIME_PATH
/www/wwwroot/hnkunya.com/data/runtime/
THINK_VERSION
5.0.4
THINK_START_TIME
1601374320.9213
THINK_START_MEM
260296
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/hnkunya.com/thinkphp/
LIB_PATH
/www/wwwroot/hnkunya.com/thinkphp/library/
CORE_PATH
/www/wwwroot/hnkunya.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/hnkunya.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/hnkunya.com/
EXTEND_PATH
/www/wwwroot/hnkunya.com/extend/
VENDOR_PATH
/www/wwwroot/hnkunya.com/vendor/
LOG_PATH
/www/wwwroot/hnkunya.com/data/runtime/log/
CACHE_PATH
/www/wwwroot/hnkunya.com/data/runtime/cache/
TEMP_PATH
/www/wwwroot/hnkunya.com/data/runtime/temp/
CONF_PATH
/www/wwwroot/hnkunya.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3
__ROOT__
MODULE_NAME
home
CONTROLLER_NAME
Listn
ACTION_NAME
index