[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:./template/default/cate_service_con_kafa.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('./template/default/c...', ['site' => ['siteurl' => 'http://www.zmeb.net', 'path' => 'html', 'logo' => '/uploads/20200521/ed...', ...], 'temp' => '/template/default', 'links' => [['link_id' => 1, 'link_title' => '邢台网站建设', 'link_url' => 'http://www.hq216.cn', ...]], ...], []) in View.php line 163
  3. at View->fetch('./template/default/c...') in Cate.php line 49
  4. at Cate->index('Program_development')
  5. at ReflectionMethod->invokeArgs(object(Cate), ['Program_development']) in App.php line 343
  6. at App::invokeMethod([object(Cate), 'index'], []) in App.php line 611
  7. at App::module(['index', 'cate', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'cate', 'index'], 'convert' => false], ['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/zhaomu/...') in index.php line 18

Environment Variables

GET Data

/Program_development_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/Program_development.html
QUERY_STRING
/Program_development.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/Program_development.html
REDIRECT_URL
/Program_development.html
REMOTE_PORT
20000
SCRIPT_FILENAME
/www/wwwroot/zhaomu/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/zhaomu
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/zhaomu
REMOTE_ADDR
154.209.214.38
SERVER_PORT
80
SERVER_ADDR
172.17.149.20
SERVER_NAME
www.zmeb.net
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.zmeb.net Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.zmeb.net
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1603584138.3682
REQUEST_TIME
1603584138
PATH_INFO
/Program_development.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/zhaomu/zmapp/
ROOTDIR
/www/wwwroot/zhaomu/
THINK_VERSION
5.0.24
THINK_START_TIME
1603584138.3686
THINK_START_MEM
408240
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/zhaomu/zmphp/
LIB_PATH
/www/wwwroot/zhaomu/zmphp/library/
CORE_PATH
/www/wwwroot/zhaomu/zmphp/library/think/
TRAIT_PATH
/www/wwwroot/zhaomu/zmphp/library/traits/
ROOT_PATH
/www/wwwroot/zhaomu/
EXTEND_PATH
/www/wwwroot/zhaomu/extend/
VENDOR_PATH
/www/wwwroot/zhaomu/vendor/
RUNTIME_PATH
/www/wwwroot/zhaomu/./data/runtime/
LOG_PATH
/www/wwwroot/zhaomu/./data/runtime/log/
CACHE_PATH
/www/wwwroot/zhaomu/./data/runtime/cache/
TEMP_PATH
/www/wwwroot/zhaomu/./data/runtime/temp/
CONF_PATH
/www/wwwroot/zhaomu/zmapp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false