[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/com_ouya/application/index/view/index/news_show.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('/www/wwwroot/com_ouy...', ['banner' => [['id' => 78, 'img' => '/public/index/images...', 'url' => '/upload/1579421301_b...', ...], ['id' => 74, 'img' => '/public/index/images...', 'url' => '/upload/1579336303_e...', ...], ['id' => 71, 'img' => '/public/index/images...', 'url' => '/upload/1579333318_d...', ...]], 'webSite' => ['id' => 1, 'title' => '...', 'keywords' => '...', ...], 'classify' => [['id' => 49, 'classifyName' => '关于我们', 'engClassifyName' => '', ...], ['id' => 52, 'classifyName' => '园林景观设计', 'engClassifyName' => '', ...], ['id' => 54, 'classifyName' => '庭院景观设计', 'engClassifyName' => '', ...], ...], ...], []) in View.php line 163
  3. at View->fetch('', ['banner' => [['id' => 78, 'img' => '/public/index/images...', 'url' => '/upload/1579421301_b...', ...], ['id' => 74, 'img' => '/public/index/images...', 'url' => '/upload/1579336303_e...', ...], ['id' => 71, 'img' => '/public/index/images...', 'url' => '/upload/1579333318_d...', ...]], 'webSite' => ['id' => 1, 'title' => '...', 'keywords' => '...', ...], 'classify' => [['id' => 49, 'classifyName' => '关于我们', 'engClassifyName' => '', ...], ['id' => 52, 'classifyName' => '园林景观设计', 'engClassifyName' => '', ...], ['id' => 54, 'classifyName' => '庭院景观设计', 'engClassifyName' => '', ...], ...], ...]) in Index.php line 161
  4. at Index->newsShow()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  6. at App::invokeMethod([object(Index), 'newsshow'], []) in App.php line 611
  7. at App::module(['index', 'index', 'newsShow'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'newsShow']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/com_ouy...') in index.php line 31

Environment Variables

GET Data

id
1082
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
oysj.cn
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
/index/index/newsShow
REDIRECT_STATUS
200
SERVER_NAME
oysj.cn
SERVER_PORT
80
SERVER_ADDR
122.114.128.123
REMOTE_PORT
20000
REMOTE_ADDR
154.209.186.225
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/com_ouya
DOCUMENT_URI
/index.php/index/index/newsShow
REQUEST_URI
/index.php/index/index/newsShow?id=1082
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
id=1082
SCRIPT_FILENAME
/www/wwwroot/com_ouya/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/index/index/newsShow
REQUEST_TIME_FLOAT
1618944381.0637
REQUEST_TIME
1618944381
Environment Variables
empty

ThinkPHP Constants

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