[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:template/pc/new/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('template/pc/new/list...', ['thispage' => 'Category', 'catid' => 82, 'category' => ['catid' => '82', 'catname' => '...', 'dirname' => 'zhanhuijixingyecheng...', ...], ...], []) in View.php line 163
  3. at View->fetch('template/pc/new/list...', ['thispage' => 'Category', 'catid' => 82, 'category' => ['catid' => '82', 'catname' => '...', 'dirname' => 'zhanhuijixingyecheng...', ...], ...], ['__ROOT__' => '', '__URL__' => '/index/category', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('template/pc/new/list...') in Category.php line 39
  5. at Category->lists()
  6. at ReflectionMethod->invokeArgs(object(Category), []) in App.php line 343
  7. at App::invokeMethod([object(Category), 'lists'], []) in App.php line 611
  8. at App::module(['index', 'category', 'lists'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'category', 'lists'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/home/nstrobotic7nis...') in index.php line 10

Environment Variables

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

Server/Request Data

REDIRECT_REDIRECT_UNIQUE_ID
X5vd4sydby77ezkOzTOFEAAAAAg
REDIRECT_REDIRECT_PHPRC
/home/nstrobotic7nisatzrcoabwoatdidc/others
REDIRECT_REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
X5vd4sydby77ezkOzTOFEAAAAAg
REDIRECT_PHPRC
/home/nstrobotic7nisatzrcoabwoatdidc/others
REDIRECT_HANDLER
php-cgi
REDIRECT_STATUS
200
UNIQUE_ID
X5vd4sydby77ezkOzTOFEAAAAAg
PHPRC
/home/nstrobotic7nisatzrcoabwoatdidc/others
HTTP_X_FORWARDED_FOR
154.209.145.60
HTTP_X_REAL_IP
154.209.145.60
HTTP_HOST
www.nstrobotics.com
HTTP_CONNECTION
close
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
<address>Apache Server at www.nstrobotics.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.nstrobotics.com
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
154.209.145.60
DOCUMENT_ROOT
/home/nstrobotic7nisatzrcoabwoatdidc/wwwroot
REQUEST_SCHEME
http
CONTEXT_PREFIX
/php-run-as-cgi
CONTEXT_DOCUMENT_ROOT
/usr/php7.0/bin
SERVER_ADMIN
webmaster@nstrobotic
SCRIPT_FILENAME
/home/nstrobotic7nisatzrcoabwoatdidc/wwwroot/index.php
REMOTE_PORT
53524
REDIRECT_URL
/index.php/zhanhuijixingyechengguozhanshi
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/zhanhuijixingyechengguozhanshi
SCRIPT_NAME
/index.php
PATH_INFO
/zhanhuijixingyechengguozhanshi
PATH_TRANSLATED
/home/nstrobotic7nisatzrcoabwoatdidc/wwwroot/zhanhuijixingyechengguozhanshi
ORIG_PATH_INFO
/index.php/zhanhuijixingyechengguozhanshi
ORIG_SCRIPT_NAME
/php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME
/usr/php7.0/bin/php-cgi
ORIG_PATH_TRANSLATED
/home/nstrobotic7nisatzrcoabwoatdidc/wwwroot/index.php/zhanhuijixingyechengguozhanshi
PHP_SELF
/index.php/zhanhuijixingyechengguozhanshi
REQUEST_TIME_FLOAT
1604050402.4551
REQUEST_TIME
1604050402
Environment Variables
empty

ThinkPHP Constants

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