[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:D:\wwwroot\www.nhzs.com\public/../application/index\view\hmen_rir.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('/hmen_rir', ['formlen' => 1067, 'global' => ['site_name' => '...', 'site_title' => '...', 'site_description' => '...', ...], 'menu' => [['id' => 2, 'title' => '首页', 'pid' => 0, ...], ['id' => 3, 'title' => '整装产品', 'pid' => 0, ...], ['id' => 4, 'title' => '贝博竞彩app案例', 'pid' => 0, ...], ...], ...], []) in View.php line 163
  3. at View->fetch('/hmen_rir', [], [], []) in Controller.php line 120
  4. at Controller->fetch('/hmen_rir') in Index.php line 114
  5. at Index->_empty()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), '_empty'], ['hmen_rir']) in App.php line 611
  8. at App::module(['index', 'index', 'hmen_rir'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'hmen_rir'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('D:\wwwroot\www.nhzs....') in index.php line 17

Environment Variables

GET Data
empty
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
D:\bt\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
D:\bt\BtSoft
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZ9hcfqc2uxtsoZ
ComSpec
C:\Windows\system32\cmd.exe
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:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\bt\BtSoft\panel\script;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3e04
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
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
iZ9hcfqc2uxtsoZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.nhzs.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
www.nhzs.com
SERVER_PORT
80
SERVER_ADDR
120.55.113.243
REMOTE_PORT
20001
REMOTE_ADDR
154.212.234.166
SERVER_SOFTWARE
nginx/1.12.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
D:/wwwroot/www.nhzs.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/hmen_rir/226.gslk
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/hmen_rir/226.gslk
SCRIPT_FILENAME
D:/wwwroot/www.nhzs.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1591520627.7102
REQUEST_TIME
1591520627
PATH_INFO
/hmen_rir/226.gslk
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\www.nhzs.com\public/../application/
RUNTIME_PATH
D:\wwwroot\www.nhzs.com\public/../runtime/
THINK_VERSION
5.0.24
THINK_START_TIME
1591520627.7122
THINK_START_MEM
146208
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\www.nhzs.com\thinkphp\
LIB_PATH
D:\wwwroot\www.nhzs.com\thinkphp\library\
CORE_PATH
D:\wwwroot\www.nhzs.com\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\www.nhzs.com\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\www.nhzs.com\
EXTEND_PATH
D:\wwwroot\www.nhzs.com\extend\
VENDOR_PATH
D:\wwwroot\www.nhzs.com\vendor\
LOG_PATH
D:\wwwroot\www.nhzs.com\public/../runtime/log\
CACHE_PATH
D:\wwwroot\www.nhzs.com\public/../runtime/cache\
TEMP_PATH
D:\wwwroot\www.nhzs.com\public/../runtime/temp\
CONF_PATH
D:\wwwroot\www.nhzs.com\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true