[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/www.cfzs.cn/public/../application/index/view/gywm/gywm.htm

  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('/gywm/gywm', ['global' => ['site_name' => '河南大阳城集团娱乐软件下载', 'site_title' => '...', 'site_description' => '...', ...], 'menu_last' => [['id' => 24, 'title' => '全屋定制', 'pid' => 2, ...], ['id' => 26, 'title' => '整装产品', 'pid' => 2, ...], ['id' => 4, 'title' => '轻奢装', 'pid' => 3, ...], ...], 'menu' => [['id' => 1, 'title' => '首页', 'pid' => 0, ...], ['id' => 3, 'title' => '整装套餐', 'pid' => 0, ...], ['id' => 6, 'title' => '精选案例', 'pid' => 0, ...], ...], ...], []) in View.php line 163
  3. at View->fetch('/gywm/gywm', [], [], []) in Controller.php line 120
  4. at Controller->fetch('/gywm/gywm') in Index.php line 478
  5. at Index->gywm()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), 'gywm'], []) in App.php line 611
  8. at App::module(['index', 'index', 'gywm'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'gywm'], '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('/www/wwwroot/www.cfz...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
ue8tposqnienkdqebt4ce1p8h4
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/www.cfzs.cn/public/index.php
QUERY_STRING
s=/gywm/{dede:type%20typeid='4'}[field:typelink/]{/dede:type}
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/gywm/%7Bdede:type%20typeid='4'%7D%5Bfield:typelink/%5D%7B/dede:type%7D
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/www.cfzs.cn/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
107.158.145.38
REMOTE_PORT
34450
SERVER_ADDR
172.27.97.98
SERVER_PORT
80
SERVER_NAME
www.cfzs.cn
REDIRECT_STATUS
200
PATH_INFO
/gywm/{dede:type typeid='4'}[field:typelink/]{/dede:type}
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
www.cfzs.cn
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=ue8tposqnienkdqebt4ce1p8h4
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1660360127.3467
REQUEST_TIME
1660360127
Environment Variables
empty

ThinkPHP Constants

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