[0] TemplateNotFoundException in Think.php line 80

模闆文件不存在:/var/www/caifu83160.cn/app/home/view/newlingrui/case1.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 80
  2. at Think->fetch('/var/www/caifu83160.cn/ap...', ['lang' => 'zh-cn', 'map_lat' => '34.6699585665', 'map_lng' => '112.4511730348', ...], []) in View.php line 159
  3. at View->fetch(':case1') in Listn.php line 77
  4. at Listn->index()
  5. at ReflectionMethod->invokeArgs(object(Listn), []) in App.php line 343
  6. at App::invokeMethod([object(Listn), 'index'], []) in App.php line 611
  7. at App::module(['home', 'Listn', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['home', 'Listn', 'index'], 'convert' => false], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 18
  10. at require('/var/www/caifu83160.cn/th...') in index.php line 17

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_PATH_INFO list/45.html
REDIRECT_STATUS 200
HTTP_HOST caifu83160.cn
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_REFERER http://caifu83160.cn/list/45.html
HTTP_CLIENT_IP 60.75.171.131
HTTP_X_FORWARDED_FOR 63.67.199.164
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME caifu83160.cn
SERVER_ADDR 118.190.80.179
SERVER_PORT 80
REMOTE_ADDR 154.210.117.66
DOCUMENT_ROOT /var/www/caifu83160.cn
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/caifu83160.cn
SERVER_ADMIN 2500306666@qq.com
SCRIPT_FILENAME /var/www/caifu83160.cn/index.php
REMOTE_PORT 57571
REDIRECT_URL /list/45.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /list/45.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1571334777.404
REQUEST_TIME 1571334777
PATH_INFO list/45.html
Environment Variablesempty
ThinkPHP Constants
APP_PATH /var/www/caifu83160.cn/app/
RUNTIME_PATH /var/www/caifu83160.cn/data/runtime/
THINK_VERSION 5.0.7
THINK_START_TIME 1571334777.4047
THINK_START_MEM 357744
EXT .php
DS /
THINK_PATH /var/www/caifu83160.cn/thinkphp/
LIB_PATH /var/www/caifu83160.cn/thinkphp/library/
CORE_PATH /var/www/caifu83160.cn/thinkphp/library/think/
TRAIT_PATH /var/www/caifu83160.cn/thinkphp/library/traits/
ROOT_PATH /var/www/caifu83160.cn/
EXTEND_PATH /var/www/caifu83160.cn/extend/
VENDOR_PATH /var/www/caifu83160.cn/vendor/
LOG_PATH /var/www/caifu83160.cn/data/runtime/log/
CACHE_PATH /var/www/caifu83160.cn/data/runtime/cache/
TEMP_PATH /var/www/caifu83160.cn/data/runtime/temp/
CONF_PATH /var/www/caifu83160.cn/app/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
QINIU_FUNCTIONS_VERSION 7.1.3
ADDON_PATH /var/www/caifu83160.cn/addons/
__ROOT__
MODULE_NAME home
CONTROLLER_NAME Listn
ACTION_NAME index