[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:../template/en/hindex\index.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/en/hinde...', ['tips' => ['...', '操作成功', '操作失败', ...], 'config' => [], 'nav' => [], ...], []) in View.php line 163
  3. at View->fetch('hindex/index', ['tips' => ['...', '操作成功', '操作失败', ...], 'config' => [], 'nav' => [], ...], ['__ROOT__' => '', '__URL__' => '/home/hindex', '__STATIC__' => '/static', ...], []) in Controller.php line 128
  4. at Controller->fetch('hindex/index') in Base.php line 260
  5. at Base->cacheFetch('hindex/index', 'index.html') in Hindex.php line 25
  6. at Hindex->indexView()
  7. at ReflectionMethod->invokeArgs(object(Hindex), []) in App.php line 351
  8. at App::invokeMethod([object(Hindex), 'indexView'], []) in App.php line 614
  9. at App::module([null, 'Hindex', 'indexView'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 464
  10. at App::exec(['type' => 'module', 'module' => [null, 'Hindex', 'indexView'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 147
  11. at App::run() in start.php line 19
  12. at require('D:\wwwroot\yeling201...') in index.php line 35

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

siteId
a:2:{s:7:"site_id";i:2;s:8:"template";s:2:"en";}
PHPSESSID
5qba8d74f4ivjcgama38n48p66
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-7fa45ede-3db7-4116-8500-64b5c8f6cbbc
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\yeling2019\yeling2019.config
APP_POOL_ID
yeling2019
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WEBSITE
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
1
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 63 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f04
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
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
WEBSITE$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/8.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.yeling.cn
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\wwwroot\yeling2019\web\public\index.php
REQUEST_URI
/
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
41526
REMOTE_HOST
23.27.102.30
REMOTE_ADDR
23.27.102.30
QUERY_STRING
PATH_TRANSLATED
D:\wwwroot\yeling2019\web\public\index.php
LOGON_USER
LOCAL_ADDR
172.16.0.1
INSTANCE_META_PATH
/LM/W3SVC/6010
INSTANCE_NAME
NEWYELING
INSTANCE_ID
6010
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\yeling2019\web\public
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:\wwwroot\yeling2019\web\public\
APPL_MD_PATH
/LM/W3SVC/6010/ROOT
IIS_UrlRewriteModule
7.1.0871.0
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
www.yeling.cn
HTTP_COOKIE
siteId=a%3A2%3A%7Bs%3A7%3A%22site_id%22%3Bi%3A2%3Bs%3A8%3A%22template%22%3Bs%3A2%3A%22en%22%3B%7D; PHPSESSID=5qba8d74f4ivjcgama38n48p66
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1642885702.6369
REQUEST_TIME
1642885702
PATH_INFO
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\yeling2019\web\public/../zh_app/
CONF_PATH
D:\wwwroot\yeling2019\web\public/../config/
INDEX_PATH
hindex/index
PRODUCT_PATH
hindex/index
hindex/index
LOG_PATH
D:\wwwroot\yeling2019\web\public/../log/
HTML_PATH
D:\wwwroot\yeling2019\web\public/html/
THINK_VERSION
5.0.20
THINK_START_TIME
1642885702.638
THINK_START_MEM
396144
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\yeling2019\web\zh_core\
LIB_PATH
D:\wwwroot\yeling2019\web\zh_core\library\
CORE_PATH
D:\wwwroot\yeling2019\web\zh_core\library\think\
TRAIT_PATH
D:\wwwroot\yeling2019\web\zh_core\library\traits\
ROOT_PATH
D:\wwwroot\yeling2019\web\
EXTEND_PATH
D:\wwwroot\yeling2019\web\extend\
VENDOR_PATH
D:\wwwroot\yeling2019\web\vendor\
RUNTIME_PATH
D:\wwwroot\yeling2019\web\runtime\
CACHE_PATH
D:\wwwroot\yeling2019\web\runtime\cache\
TEMP_PATH
D:\wwwroot\yeling2019\web\runtime\temp\
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
IS_AJAX
false
IS_PJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Hindex
ACTION_NAME
indexview
Baidu
sogou