[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:D:\phpstudy_pro\WWW\127.0.0.4\templates/ysmb_yscms\index_prosj.htm

  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('ysmb_yscms/index_pro...', ['topid' => 13, 'tid' => '22', 'ys' => ['id' => 22, 'reid' => 16, 'topid' => 13, ...], ...], []) in View.php line 192
  3. at View->fetch('ysmb_yscms/index_pro...', [], [], false) in View.php line 42
  4. at View->output('ysmb_yscms/index_pro...') in Response.php line 396
  5. at Response->getContent() in Response.php line 128
  6. at Response->send() in index.php line 4

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
PATH C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Java\jdk1.7.0_79\bin;D:\nodejs\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\jusrush\AppData\Roaming\npm;C:\Program Files (x86)\Egret\Egret Wing 3\bin;D:\phpStudy2018\PHPTutorial\php\php-5.6.27-nts
SYSTEMROOT C:\Windows
COMSPEC C:\Windows\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR C:\Windows
PHPRC D:/phpstudy_pro/Extensions/php/php5.6.9nts
_FCGI_SHUTDOWN_EVENT_ 8776
HTTP_CONNECTION close
PATH_TRANSLATED redirect:\index.php\lists\index\tid\22
PATH_INFO /home/lists/index/tid/22
SCRIPT_NAME /index.php
REQUEST_URI /index.php/home/lists/index/tid/22
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 56787
SCRIPT_FILENAME D:/phpstudy_pro/WWW/127.0.0.4/index.php
SERVER_ADMIN admin@example.com
CONTEXT_DOCUMENT_ROOT D:/phpstudy_pro/WWW/127.0.0.4
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT D:/phpstudy_pro/WWW/127.0.0.4
REMOTE_ADDR 127.0.0.1
SERVER_PORT 80
SERVER_ADDR 127.0.0.4
SERVER_NAME 127.0.0.4
SERVER_SOFTWARE Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02
SERVER_SIGNATURE
SystemRoot C:\Windows
HTTP_ACCEPT */*
HTTP_HOST 127.0.0.4
FCGI_ROLE RESPONDER
PHP_SELF /index.php/home/lists/index/tid/22
REQUEST_TIME_FLOAT 1663208988.5386
REQUEST_TIME 1663208988
Environment Variablesempty
ThinkPHP Constants
DS \
__APP_PATH__ D:\phpstudy_pro\WWW\127.0.0.4\app\
__ROOT_PATH__ D:\phpstudy_pro\WWW\127.0.0.4\
__CONFIG_PATH__ D:\phpstudy_pro\WWW\127.0.0.4\core/config\
__RUNTIME_PATH__ D:\phpstudy_pro\WWW\127.0.0.4\core/runtime\