[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:template/template\default\.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/', ['temp' => 'template/default', 'tempp_src' => 'default', 'menu' => [['cate_name' => '走进龙8long882娱乐官网', 'id' => 352, 'level' => 1, ...], ['cate_name' => '产品中心', 'id' => 362, 'level' => 3, ...], ['cate_name' => '新闻中心', 'id' => 363, 'level' => 1, ...], ...], ...], []) in View.php line 163
  3. at View->fetch('template/default/', [], [], []) in Controller.php line 120
  4. at Controller->fetch('template/default/') in Cate.php line 135
  5. at Cate->index('423')
  6. at ReflectionMethod->invokeArgs(object(Cate), ['423']) in App.php line 343
  7. at App::invokeMethod([object(Cate), 'index'], []) in App.php line 611
  8. at App::module(['index', 'cate', 'index'], ['app_host' => '', 'app_debug' => 1, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'cate', 'index']], ['app_host' => '', 'app_debug' => 1, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('D:\vhostroot\LocalUs...') in index.php line 31

Environment Variables

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

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-a270c661-4cae-47ff-aec8-0824707315c0
PHPRC
C:\php\php5.6\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\tjtp\tjtp.config
APP_POOL_ID
tjtp
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-R334JRE2798
ComSpec
C:\Windows\system32\cmd.exe
DEFLOGDIR
C:\ProgramData\McAfee\DesktopProtection
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
8
OS
Windows_NT
Path
C:\Perl\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;D:\Program Files (x86)\MySQL\MySQL Server 6.0\bin;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
4f01
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
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
USERDOMAIN
WORKGROUP
USERNAME
WIN-R334JRE2798$
USERPROFILE
C:\Windows\system32\config\systemprofile
VSEDEFLOGDIR
C:\ProgramData\McAfee\DesktopProtection
windir
C:\Windows
ORIG_PATH_INFO
/index.php/index/cate/index/cid/423.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/8.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
tjtp.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\vhostroot\LocalUser\tjtp\www\index.php
REQUEST_URI
/index/cate/index/cid/423.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20004
REMOTE_HOST
155.159.122.174
REMOTE_ADDR
155.159.122.174
QUERY_STRING
PATH_TRANSLATED
D:\vhostroot\LocalUser\tjtp\www\index.php\index\cate\index\cid\423.html
PATH_INFO
/index/cate/index/cid/423.html
LOGON_USER
LOCAL_ADDR
192.168.100.84
INSTANCE_META_PATH
/LM/W3SVC/208531105
INSTANCE_NAME
TJTP
INSTANCE_ID
208531105
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\vhostroot\LocalUser\tjtp\www
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:\vhostroot\LocalUser\tjtp\www\
APPL_MD_PATH
/LM/W3SVC/208531105/ROOT
IIS_UrlRewriteModule
7.1.0871.0
WEBSOCKET_VERSION
13
UNENCODED_URL
/index/cate/index/cid/423.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/index/cate/index/cid/423.html
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
tjtp.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/index/cate/index/cid/423.html
REQUEST_TIME_FLOAT
1635126698.528
REQUEST_TIME
1635126698
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\vhostroot\LocalUser\tjtp\www/application/
ADMINIMG
D:\vhostroot\LocalUser\tjtp\www/public/static/admin/uploads/cateimg/
INDEXIMGS
D:\vhostroot\LocalUser\tjtp\www/public/static/index/uploads/cateimg/
ADMIN_STATIC
D:\vhostroot\LocalUser\tjtp\www/public/static/admin/
INDEXIMG
D:\vhostroot\LocalUser\tjtp\www/public/static/index/uploads/img/
INDEXATT
D:\vhostroot\LocalUser\tjtp\www/public/static/index/uploads/att/
INDEXAD
D:\vhostroot\LocalUser\tjtp\www/public/static/index/uploads/ad/
APP_DEBUG
true
THINK_VERSION
5.0.24
THINK_START_TIME
1635126698.5292
THINK_START_MEM
153760
EXT
.php
DS
\
THINK_PATH
D:\vhostroot\LocalUser\tjtp\www\thinkphp\
LIB_PATH
D:\vhostroot\LocalUser\tjtp\www\thinkphp\library\
CORE_PATH
D:\vhostroot\LocalUser\tjtp\www\thinkphp\library\think\
TRAIT_PATH
D:\vhostroot\LocalUser\tjtp\www\thinkphp\library\traits\
ROOT_PATH
D:\vhostroot\LocalUser\tjtp\www\
EXTEND_PATH
D:\vhostroot\LocalUser\tjtp\www\extend\
VENDOR_PATH
D:\vhostroot\LocalUser\tjtp\www\vendor\
RUNTIME_PATH
D:\vhostroot\LocalUser\tjtp\www\runtime\
LOG_PATH
D:\vhostroot\LocalUser\tjtp\www\runtime\log\
CACHE_PATH
D:\vhostroot\LocalUser\tjtp\www\runtime\cache\
TEMP_PATH
D:\vhostroot\LocalUser\tjtp\www\runtime\temp\
CONF_PATH
D:\vhostroot\LocalUser\tjtp\www/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true