[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:D:\xafanrong\application\index\view\index\news.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('', [], []) in View.php line 189
  3. at View->fetch('', []) in View.php line 35
  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 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_ID
xafanrong.com
CommonProgramFiles
C:\Program Files\Common Files
COMPUTERNAME
iZ2309f14f3Z
ComSpec
C:\Windows\system32\cmd.exe
DFSTRACINGON
FALSE
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\ffmpeg32\bin;D:\websoft\php-5.5.7
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_IDENTIFIER
x86 Family 6 Model 63 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f02
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
TRACE_FORMAT_SEARCH_PATH
\\winseqfe\release\Windows6.0\lh_sp2rtm\6002.18005.090410-1830\x86fre\symbols.pri\TraceFormat
USERDOMAIN
WORKGROUP
USERNAME
iZ2309f14f3Z$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/news.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/7.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.xafanrong.com
SCRIPT_NAME
/index.php
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20000
REMOTE_HOST
154.220.5.110
REMOTE_ADDR
154.220.5.110
QUERY_STRING
PATH_TRANSLATED
D:\xafanrong\public\index.php\news.html
PATH_INFO
/news.html
LOGON_USER
LOCAL_ADDR
120.55.194.56
INSTANCE_META_PATH
/LM/W3SVC/2
INSTANCE_ID
2
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\xafanrong\public\
APPL_MD_PATH
/LM/W3SVC/2/ROOT
IIS_UrlRewriteModule
7.1.0871.0
UNENCODED_URL
/news.html
IIS_WasUrlRewritten
1
SCRIPT_FILENAME
D:\xafanrong\public\index.php
REQUEST_URI
/news.html
DOCUMENT_ROOT
D:\xafanrong\public
HTTP_X_ORIGINAL_URL
/news.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.xafanrong.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/news.html
REQUEST_TIME_FLOAT
1603431037.4179
REQUEST_TIME
1603431037
Environment Variablesempty
ThinkPHP Constantsempty