[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/webHome/host9298668/www/application/index/view/index/news_info.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('', ['banner' => [['id' => 77, 'img' => '/upload/1537521189_1...', 'url' => '', ...], ['id' => 76, 'img' => '/upload/1537929778_1...', 'url' => '', ...], ['id' => 75, 'img' => '/upload/1537929793_b...', 'url' => '', ...]], 'webSite' => ['id' => 1, 'logo' => '/upload/1537433869_b...', 'wx' => '/upload/1537343244_7...', ...], 'classify' => [['id' => 31, 'classifyName' => '公司简介', 'level' => 2, ...], ['id' => 32, 'classifyName' => '企业展示', 'level' => 2, ...], ['id' => 33, 'classifyName' => '新闻中心', 'level' => 2, ...], ...], ...], []) in View.php line 163
  3. at View->fetch('', ['banner' => [['id' => 77, 'img' => '/upload/1537521189_1...', 'url' => '', ...], ['id' => 76, 'img' => '/upload/1537929778_1...', 'url' => '', ...], ['id' => 75, 'img' => '/upload/1537929793_b...', 'url' => '', ...]], 'webSite' => ['id' => 1, 'logo' => '/upload/1537433869_b...', 'wx' => '/upload/1537343244_7...', ...], 'classify' => [['id' => 31, 'classifyName' => '公司简介', 'level' => 2, ...], ['id' => 32, 'classifyName' => '企业展示', 'level' => 2, ...], ['id' => 33, 'classifyName' => '新闻中心', 'level' => 2, ...], ...], ...]) in Index.php line 52
  4. at Index->newsInfo()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  6. at App::invokeMethod([object(Index), 'newsinfo'], []) in App.php line 611
  7. at App::module(['index', 'index', 'newsInfo'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'newsInfo']], ['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('/webHome/host9298668...') in index.php line 16

Environment Variables

GET Data

id
45
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
host9298668
HOME
/webHome//host9298668
FCGI_ROLE
RESPONDER
REDIRECT_HANDLER
php-fpm
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.jlhyzy.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.jlhyzy.com
SERVER_ADDR
122.10.96.44
SERVER_PORT
80
REMOTE_ADDR
142.111.70.19
DOCUMENT_ROOT
/webHome/host9298668/www
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/webHome/host9298668/www/index.php
REMOTE_PORT
20001
REDIRECT_QUERY_STRING
id=45
REDIRECT_URL
/index.php/index/index/newsInfo
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
id=45
REQUEST_URI
/index.php/index/index/newsInfo?id=45
SCRIPT_NAME
/index.php
PATH_INFO
/index/index/newsInfo
PATH_TRANSLATED
/webHome/host9298668/www/index/index/newsInfo
ORIG_PATH_INFO
/index.php/index/index/newsInfo
ORIG_SCRIPT_NAME
/php5-fcgi/php-fpm-host9298668
ORIG_SCRIPT_FILENAME
/php-1.1/phpfarm-0.1.0/inst/bin/php-fpm-host9298668
ORIG_PATH_TRANSLATED
/webHome/host9298668/www/index.php/index/index/newsInfo
PHP_SELF
/index.php/index/index/newsInfo
REQUEST_TIME_FLOAT
1558257351.01
REQUEST_TIME
1558257351
argv
[ "id=45" ]
argc
1

Environment Variables

USER
host9298668
HOME
/webHome//host9298668
FCGI_ROLE
RESPONDER
REDIRECT_HANDLER
php-fpm
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.jlhyzy.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.jlhyzy.com
SERVER_ADDR
122.10.96.44
SERVER_PORT
80
REMOTE_ADDR
142.111.70.19
DOCUMENT_ROOT
/webHome/host9298668/www
SERVER_ADMIN
root@localhost
SCRIPT_FILENAME
/webHome/host9298668/www/index.php
REMOTE_PORT
20001
REDIRECT_QUERY_STRING
id=45
REDIRECT_URL
/index.php/index/index/newsInfo
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
id=45
REQUEST_URI
/index.php/index/index/newsInfo?id=45
SCRIPT_NAME
/index.php
PATH_INFO
/index/index/newsInfo
PATH_TRANSLATED
/webHome/host9298668/www/index/index/newsInfo
ORIG_PATH_INFO
/index.php/index/index/newsInfo
ORIG_SCRIPT_NAME
/php5-fcgi/php-fpm-host9298668
ORIG_SCRIPT_FILENAME
/php-1.1/phpfarm-0.1.0/inst/bin/php-fpm-host9298668
ORIG_PATH_TRANSLATED
/webHome/host9298668/www/index.php/index/index/newsInfo
PHP_SELF
/index.php/index/index/newsInfo
REQUEST_TIME_FLOAT
1558257351.01
REQUEST_TIME
1558257351
argv
[ "id=45" ]
argc
1

ThinkPHP Constants

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