[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:/home/bae/app/application/index/view/contact/index.html

  1. public function fetch($template, $data = [], $config = [])
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. // 记录视图信息
  12. $this->app
  13. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  14. $this->template->fetch($template, $data, $config);
  15. }

Call Stack

  1. in Think.php line 86
  2. at Think->fetch('/home/bae/app/applic...', ['compinfo' => object(CompanyInformation), 'news' => object(Collection), 'chiness' => 'htdz', ...], []) in View.php line 192
  3. at View->fetch('', ['compinfo' => object(CompanyInformation), 'news' => object(Collection), 'chiness' => 'htdz', ...], [], false) in View.php line 42
  4. at View->output('') in Response.php line 396
  5. at Response->getContent() in Response.php line 128
  6. at Response->send() in index.php line 21
  7. at require('/home/bae/app/public...') in index.php line 2

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
bae
HOME
/home/bae
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.hnwxhg.com
HTTP_CLIENTIP
154.95.141.57
HTTP_X_FORWARDED_FOR
154.95.141.57
HTTP_X_FORWARDED_PROTO
http
REDIRECT_STATUS
200
SERVER_NAME
www.hnwxhg.com
SERVER_ADDR
172.17.0.113
REMOTE_PORT
REMOTE_ADDR
154.95.141.57
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/bae/app
DOCUMENT_URI
/index.php/contact.html
REQUEST_URI
/contact.html
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SERVER_PORT
80
PATH_INFO
/contact.html
SCRIPT_NAME
/index.php/contact.html
SCRIPT_FILENAME
/home/bae/app/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/contact.html/contact.html
REQUEST_TIME_FLOAT
1591446064.9708
REQUEST_TIME
1591446064
Environment Variablesempty
ThinkPHP Constants
SERVER_SOFTWARE
bae/3.0
BAE_ENV_APPID
appidf6f183it69
BAE_ENV_LOG_HOST
172.17.0.1
BAE_ENV_LOG_PORT
7000
BAE_MEMORY
256
SESSION_EXP_TIME
3600
CACHE_TAG_ZWUSER
zwuser
CACHE_TAG_LOG
userlog
CACHE_TAG_ROLE
userrole
CACHE_TAG_CAT
usercat
CACHE_TAG_PRODUCT
userproduct
CACHE_TAG_ARCHIVE
archive
CACHE_TAG_COMPANYINFORMATION
companyinformation
CACHE_TAG_CASECAT
usercasecat
CACHE_TAG_CASE
usercase
CACHE_TAG_NEWSCAT
newscat
CACHE_TAG_NEWS
usernews
CACHE_TAG_RECRUIT
recruit
CACHE_TAG_MESSAGE
usermessage
CACHE_TAG_NAVIGATIONCONTENT
navigationcontent
CACHE_TAG_COOPERATIVEPARTNER
cooperativepartner
CACHE_TAG_FRIENDLYLINK
friendlylink
CACHE_TAG_WXCONFIG
userwxconfig
CACHE_TAG_WXREPLY
userwxreply
CACHE_TAG_SITECAT
sitecat
CACHE_TAG_SITEPAGE
sitepage
CACHE_TAG_SITELIST
sitelist
CACHE_TAG_ADMIN_AUTH
adminauth
CACHE_TAG_AGENT_AUTH
agentauth
CACHE_TAG_USER_RULE
userauth
UPLOAD_DIR
up_file
A_MONEY
1
A_MONEY_STR
余额
ADMIN_RECHARGE
1
AGENT_OPENSITE
2
AGENT_UPDATESITE
3
THINK_START_TIME
1591446064.9765
THINK_START_MEM
791816
EXT
.php
DS
/
THINK_PATH
/home/bae/app/application/
LIB_PATH
/home/bae/app/application/library/
CORE_PATH
/home/bae/app/application/library/think/
TRAIT_PATH
/home/bae/app/application/library/traits/
APP_PATH
/home/bae/app/
ROOT_PATH
/home/bae/
EXTEND_PATH
/home/bae/extend/
VENDOR_PATH
/home/bae/vendor/
RUNTIME_PATH
/home/bae/runtime/
LOG_PATH
/home/bae/runtime/log/
CACHE_PATH
/home/bae/runtime/cache/
TEMP_PATH
/home/bae/runtime/temp/
CONF_PATH
/home/bae/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
MODULAR_TAG
modular