[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:/www/users/CH606601/WEB/application/index/view/dingzhi.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('/dingzhi', ['global' => ['site_name' => '...', 'site_title' => '杭州城建裝飾_2...', 'site_description' => '...', ...], 'menu' => [['id' => 2, 'title' => '首頁', 'pid' => 0, ...], ['id' => 3, 'title' => '品牌實力', 'pid' => 0, ...], ['id' => 4, 'title' => '精裝套餐', 'pid' => 0, ...], ...]], []) in View.php line 159
  3. at View->fetch('/dingzhi', [], [], []) in Controller.php line 111
  4. at Controller->fetch('/dingzhi') in Index.php line 122
  5. at Index->_empty()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 196
  7. at App::invokeMethod([object(Index), '_empty'], ['dingzhi']) in App.php line 408
  8. at App::module(['index', 'index', 'dingzhi'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'dingzhi'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 18
  11. at require('/www/users/CH606601/...') in index.php line 17

Environment Variables

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

Server/Request Data

REDIRECT_REDIRECT_UNIQUE_ID
XVVvW38AAAEAAC6iAE8AAAAk
REDIRECT_REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
XVVvW38AAAEAAC6iAE8AAAAk
REDIRECT_HANDLER
application/x-httpd-php5
REDIRECT_STATUS
200
UNIQUE_ID
XVVvW38AAAEAAC6iAE8AAAAk
HTTP_HOST
wxjsggc.cn
HTTP_USER_AGENT
Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip,deflate
HTTP_REFERER
http://wxjsggc.cn/dingzhi/typeid-18.html
HTTP_CLIENT_IP
66.191.106.192
HTTP_X_FORWARDED_FOR
66.106.106.195
PATH
/usr/local/jdk/bin:/usr/local/jdk/bin:/sbin:/usr/sbin:/bin:/usr/bin:/bin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
wxjsggc.cn
SERVER_ADDR
122.114.176.100
SERVER_PORT
80
REMOTE_ADDR
156.235.196.78
DOCUMENT_ROOT
/www/users/CH606601/WEB
SERVER_ADMIN
vhost@zzidc.com
SCRIPT_FILENAME
/www/users/CH606601/WEB/index.php
REMOTE_PORT
42145
REDIRECT_QUERY_STRING
s=/index.php&s=/dingzhi/typeid-18.html
REDIRECT_URL
/index.php
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=/index.php&s=/dingzhi/typeid-18.html
REQUEST_URI
/dingzhi/typeid-18.html
SCRIPT_NAME
/index.php
ORIG_SCRIPT_FILENAME
/usr/local/zend/php5.6/bin/php-cgi
ORIG_PATH_INFO
/index.php
ORIG_PATH_TRANSLATED
/www/users/CH606601/WEB/index.php
ORIG_SCRIPT_NAME
/php56-cgi
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1565880155.4232
REQUEST_TIME
1565880155
PATH_INFO
/dingzhi/typeid-18.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/users/CH606601/WEB/application/
RUNTIME_PATH
/www/users/CH606601/WEB/runtime/
THINK_VERSION
5.0.10
THINK_START_TIME
1565880155.4257
THINK_START_MEM
230296
EXT
.php
DS
/
THINK_PATH
/www/users/CH606601/WEB/thinkphp/
LIB_PATH
/www/users/CH606601/WEB/thinkphp/library/
CORE_PATH
/www/users/CH606601/WEB/thinkphp/library/think/
TRAIT_PATH
/www/users/CH606601/WEB/thinkphp/library/traits/
ROOT_PATH
/www/users/CH606601/WEB/
EXTEND_PATH
/www/users/CH606601/WEB/extend/
VENDOR_PATH
/www/users/CH606601/WEB/vendor/
LOG_PATH
/www/users/CH606601/WEB/runtime/log/
CACHE_PATH
/www/users/CH606601/WEB/runtime/cache/
TEMP_PATH
/www/users/CH606601/WEB/runtime/temp/
CONF_PATH
/www/users/CH606601/WEB/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false