[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:../template/default/pc/index\newsdetails.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('../template/default/...', ['info' => ['page' => ['upId' => null, 'downId' => 8, 'uptit' => null, ...]]], []) in View.php line 159
  3. at View->fetch('', ['info' => ['page' => ['upId' => null, 'downId' => 8, 'uptit' => null, ...]]], []) in View.php line 36
  4. at View->output('') in Response.php line 305
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 18
  7. at require('C:\website\test_mili...') in index.php line 64

Environment Variables

GET Data

id
7
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
BT_PANEL
C:\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
C:\BtSoft
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZzvrl6sjwjmdqZ
ComSpec
C:\Windows\system32\cmd.exe
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\;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PHP_FCGI_MAX_REQUESTS
3000
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5507
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
iZzvrl6sjwjmdqZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
HTTP_HOST
pc.miliwangwang.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
pc.miliwangwang.com
SERVER_PORT
80
SERVER_ADDR
172.28.125.121
REMOTE_PORT
41124
REMOTE_ADDR
54.165.122.173
SERVER_SOFTWARE
nginx/1.21.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
C:/website/test_mili/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/newsdetails.html?id=7
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/newsdetails.html&id=7
PATH_INFO
/index/newsdetails.html
SCRIPT_FILENAME
C:/website/test_mili/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711645065.0761
REQUEST_TIME
1711645065
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\website\test_mili\public/../application/
BAOXIAN_CALLBACK_URL
http://pay0317.miliwangwang.com/pushback/
DEVICE_TYPE
1
BIND_MODULE
pc
MP_APPID
wxa05deb9193dd312e
MM_KEY
07a940295d5ae7e8ea9a3d13faaa4c96
MP_MCHID
1509636131
MP_APPSECRET
172e771bc1dc5359f149b1d21e9a4300
THINK_VERSION
5.0.7
THINK_START_TIME
1711645065.0774
THINK_START_MEM
391352
EXT
.php
DS
\
THINK_PATH
C:\website\test_mili\thinkphp\
LIB_PATH
C:\website\test_mili\thinkphp\library\
CORE_PATH
C:\website\test_mili\thinkphp\library\think\
TRAIT_PATH
C:\website\test_mili\thinkphp\library\traits\
ROOT_PATH
C:\website\test_mili\
EXTEND_PATH
C:\website\test_mili\extend\
VENDOR_PATH
C:\website\test_mili\vendor\
RUNTIME_PATH
C:\website\test_mili\runtime\
LOG_PATH
C:\website\test_mili\runtime\log\
CACHE_PATH
C:\website\test_mili\runtime\cache\
TEMP_PATH
C:\website\test_mili\runtime\temp\
CONF_PATH
C:\website\test_mili\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
PC_HTTP_URL
http://pc.miliwangwang.com
H5_HTTP_URL
http://h5.miliwangwang.com
APP_HTTP_URL
http://h5app.miliwangwang.com
DAI_HTTP_URL
http://dai.miliwangwang.com
SALE_HTTP_URL
http://test-sale.miliwangwang.com
ADMIN_HTTP_URL
http://miliadmin.miliwangwang.com
PAY_NOTIFY_URL
http://h5.miliwangwang.com/callback
MIAPI_URL
http://test-miapi.miliwangwang.com
SITE_WEB_TITLE
米粒旺旺