[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:../template/default/content/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/default/...', ['goodscate' => [['g_c_id' => 2, 'name' => '大米', 'mobile_name' => '大米', ...], ['g_c_id' => 3, 'name' => '杂粮', 'mobile_name' => '杂粮', ...], ['g_c_id' => 4, 'name' => '茶叶', 'mobile_name' => '茶叶', ...], ...], 'nav' => [['nav_id' => 1, 'old_id' => null, 'name' => '产品', ...], ['nav_id' => 21, 'old_id' => null, 'name' => '方案', ...], ['nav_id' => 2, 'old_id' => null, 'name' => '服务', ...], ...], 'nav_info' => ['nav_id' => 13, 'old_id' => null, 'name' => '加入我们', ...], ...], []) in View.php line 163
  3. at View->fetch('content/list', ['goodscate' => [['g_c_id' => 2, 'name' => '大米', 'mobile_name' => '大米', ...], ['g_c_id' => 3, 'name' => '杂粮', 'mobile_name' => '杂粮', ...], ['g_c_id' => 4, 'name' => '茶叶', 'mobile_name' => '茶叶', ...], ...], 'nav' => [['nav_id' => 1, 'old_id' => null, 'name' => '产品', ...], ['nav_id' => 21, 'old_id' => null, 'name' => '方案', ...], ['nav_id' => 2, 'old_id' => null, 'name' => '服务', ...], ...], 'nav_info' => ['nav_id' => 13, 'old_id' => null, 'name' => '加入我们', ...], ...], ['__ROOT__' => '', '__URL__' => '/home/hcontent', '__STATIC__' => '/static', ...], []) in Controller.php line 127
  4. at Controller->fetch('content/list') in Base.php line 191
  5. at Base->returnTemplate('content/list', ['nid' => '13']) in Hcontent.php line 87
  6. at Hcontent->getContent()
  7. at ReflectionMethod->invokeArgs(object(Hcontent), []) in App.php line 343
  8. at App::invokeMethod([object(Hcontent), 'getContent'], []) in App.php line 611
  9. at App::module([null, 'Hcontent', 'getContent'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => [null, 'Hcontent', 'getContent'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/www/wwwroot/zkgd.zh...') in index.php line 35

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/about/job/13.html
QUERY_STRING
s=/about/job/13.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/about/job/13.html
REDIRECT_URL
/about/job/13.html
REMOTE_PORT
38060
SCRIPT_FILENAME
/www/wwwroot/zkgd.zhujichina.com.cn/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/zkgd.zhujichina.com.cn/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/zkgd.zhujichina.com.cn/public
REMOTE_ADDR
107.148.133.232
SERVER_PORT
80
SERVER_ADDR
172.17.5.158
SERVER_NAME
www.cn-amd.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
Apache Server at www.cn-amd.com Port 80
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.cn-amd.com
HTTP_USER_AGENT
ZoominfoBot (zoominfobot at zoominfo dot com)
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1675156665.498
REQUEST_TIME
1675156665
PATH_INFO
/about/job/13.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/public/../zh_app/
CONF_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/public/../config/
INDEX_PATH
hindex/index
LOG_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/public/../log/
SITE_ID
1
THINK_VERSION
5.0.24
THINK_START_TIME
1675156665.4983
THINK_START_MEM
403848
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/zh_core/
LIB_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/zh_core/library/
CORE_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/zh_core/library/think/
TRAIT_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/zh_core/library/traits/
ROOT_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/
EXTEND_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/extend/
VENDOR_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/vendor/
RUNTIME_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/runtime/
CACHE_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/zkgd.zhujichina.com.cn/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
IS_AJAX
false
IS_PJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Hcontent
ACTION_NAME
getcontent