[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/var/www/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('/var/www/hnkunya.com...', ['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('/var/www/hnkunya.com...') in index.php line 18

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_PATH_INFO
list/5.html
REDIRECT_STATUS
200
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
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.hnkunya.com
SERVER_ADDR
118.190.80.179
SERVER_PORT
80
REMOTE_ADDR
161.123.173.196
DOCUMENT_ROOT
/var/www/hnkunya.com
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/var/www/hnkunya.com
SERVER_ADMIN
2500306666@qq.com
SCRIPT_FILENAME
/var/www/hnkunya.com/index.php
REMOTE_PORT
20000
REDIRECT_URL
/list/5.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/list/5.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1594278867.618
REQUEST_TIME
1594278867
PATH_INFO
list/5.html
Environment Variablesempty
ThinkPHP Constants
APP_PATH
/var/www/hnkunya.com/app/
RUNTIME_PATH
/var/www/hnkunya.com/data/runtime/
THINK_VERSION
5.0.4
THINK_START_TIME
1594278867.6184
THINK_START_MEM
355920
EXT
.php
DS
/
THINK_PATH
/var/www/hnkunya.com/thinkphp/
LIB_PATH
/var/www/hnkunya.com/thinkphp/library/
CORE_PATH
/var/www/hnkunya.com/thinkphp/library/think/
TRAIT_PATH
/var/www/hnkunya.com/thinkphp/library/traits/
ROOT_PATH
/var/www/hnkunya.com/
EXTEND_PATH
/var/www/hnkunya.com/extend/
VENDOR_PATH
/var/www/hnkunya.com/vendor/
LOG_PATH
/var/www/hnkunya.com/data/runtime/log/
CACHE_PATH
/var/www/hnkunya.com/data/runtime/cache/
TEMP_PATH
/var/www/hnkunya.com/data/runtime/temp/
CONF_PATH
/var/www/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