[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:template/pc/new/public_show.htmll

  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/pc/new/publ...', ['thispage' => 'Article', 'catname' => '招生就业', 'article' => ['id' => '1133', 'title' => '...', 'inputtime' => '1646990280', ...], ...], []) in View.php line 163
  3. at View->fetch('template/pc/new/publ...', ['thispage' => 'Article', 'catname' => '招生就业', 'article' => ['id' => '1133', 'title' => '...', 'inputtime' => '1646990280', ...], ...], ['__ROOT__' => '', '__URL__' => '/index/article', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('template/pc/new/publ...') in Article.php line 63
  5. at Article->show()
  6. at ReflectionMethod->invokeArgs(object(Article), []) in App.php line 343
  7. at App::invokeMethod([object(Article), 'show'], []) in App.php line 611
  8. at App::module(['index', 'article', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'article', 'show'], '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:\phpstudy_pro\WWW\...') in index.php line 10

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
5ss29gh236l60h88lm3977798e
Session
empty

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Users\Administrator\AppData\Roaming
CLIENTNAME
XXJIANG-MAC
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
cdqczyjsxx
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
HOMEDRIVE
C:
HOMEPATH
\Users\Administrator
LOCALAPPDATA
C:\Users\Administrator\AppData\Local
LOGONSERVER
\\cdqczyjsxx
NUMBER_OF_PROCESSORS
8
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;D:\Software\
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
4f01
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
SESSIONNAME
RDP-Tcp#6
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Users\ADMINI~1\AppData\Local\Temp\2
TMP
C:\Users\ADMINI~1\AppData\Local\Temp\2
USERDOMAIN
CDQCZYJSXX
USERDOMAIN_ROAMINGPROFILE
CDQCZYJSXX
USERNAME
Administrator
USERPROFILE
C:\Users\Administrator
windir
C:\Windows
__COMPAT_LAYER
Installer
HTTP_COOKIE
PHPSESSID=5ss29gh236l60h88lm3977798e
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.cdqczx.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)
REDIRECT_STATUS
200
SERVER_NAME
www.cdqczx.com
SERVER_PORT
80
SERVER_ADDR
172.18.9.151
REMOTE_PORT
36846
REMOTE_ADDR
23.90.62.50
SERVER_SOFTWARE
nginx/1.15.11
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
D:/phpstudy_pro/WWW
DOCUMENT_URI
/index.php
REQUEST_URI
/xiaoqihezuo/1133.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/xiaoqihezuo/1133.html
PATH_TRANSLATED
D:/phpstudy_pro/WWW
PATH_INFO
/xiaoqihezuo/1133.html
SCRIPT_FILENAME
D:/phpstudy_pro/WWW/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1653460979.1609
REQUEST_TIME
1653460979
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\phpstudy_pro\WWW/application/
__FIVEROOT__
THINK_VERSION
5.0.24
THINK_START_TIME
1653460979.1638
THINK_START_MEM
432264
EXT
.php
DS
\
THINK_PATH
D:\phpstudy_pro\WWW\thinkphp\
LIB_PATH
D:\phpstudy_pro\WWW\thinkphp\library\
CORE_PATH
D:\phpstudy_pro\WWW\thinkphp\library\think\
TRAIT_PATH
D:\phpstudy_pro\WWW\thinkphp\library\traits\
ROOT_PATH
D:\phpstudy_pro\WWW\
EXTEND_PATH
D:\phpstudy_pro\WWW\extend\
VENDOR_PATH
D:\phpstudy_pro\WWW\vendor\
RUNTIME_PATH
D:\phpstudy_pro\WWW\runtime\
LOG_PATH
D:\phpstudy_pro\WWW\runtime\log\
CACHE_PATH
D:\phpstudy_pro\WWW\runtime\cache\
TEMP_PATH
D:\phpstudy_pro\WWW\runtime\temp\
CONF_PATH
D:\phpstudy_pro\WWW/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true