[0] TemplateNotFoundException in Think.php line 78

模板文件不存在:/home/wwwroot/myfxtops.com/public/../application/frontend/view/account/Account.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 78
  2. at Think->fetch('/home/wwwroot/myfxto...', ['userInfo' => null], []) in View.php line 127
  3. at View->fetch('', ['userInfo' => null], [], []) in Controller.php line 108
  4. at Controller->fetch() in Common.php line 96
  5. at Common->_empty('Account')
  6. at ReflectionMethod->invokeArgs(object(Index), ['Account']) in App.php line 393
  7. at App::module(['frontend', 'Account', 'Account'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 137
  8. at App::run() in start.php line 18
  9. at require('/home/wwwroot/thinkp...') in index.php line 16

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/wwwroot
HTTP_REFERER http://www.myfxtop.com/Account/Account/ResetPwd
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 35.175.172.94, 47.75.120.99
HTTP_HOST www.myfxtops.com
PATH_INFO //Account/Account/ResetPwd
PHP_ADMIN_VALUE open_basedir=
REDIRECT_STATUS 200
SERVER_NAME www.myfxtops.com
SERVER_PORT 80
SERVER_ADDR 172.18.175.46
REMOTE_PORT 28258
REMOTE_ADDR 172.18.175.46
SERVER_SOFTWARE nginx/1.14.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT /home/wwwroot/myfxtops.com/public
DOCUMENT_URI /index.php
REQUEST_URI /Account/Account/ResetPwd
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//Account/Account/ResetPwd
SCRIPT_FILENAME /home/wwwroot/myfxtops.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF
REQUEST_TIME_FLOAT 1711628330.2954
REQUEST_TIME 1711628330
Environment Variablesempty
ThinkPHP Constants
APP_PATH /home/wwwroot/myfxtops.com/public/../application/
THINK_VERSION 5.0.1
THINK_START_TIME 1711628330.2956
THINK_START_MEM 359680
EXT .php
DS /
THINK_PATH /home/wwwroot/thinkphp/
LIB_PATH /home/wwwroot/thinkphp/library/
CORE_PATH /home/wwwroot/thinkphp/library/think/
TRAIT_PATH /home/wwwroot/thinkphp/library/traits/
ROOT_PATH /home/wwwroot/myfxtops.com/public/../
EXTEND_PATH /home/wwwroot/myfxtops.com/public/../extend/
VENDOR_PATH /home/wwwroot/myfxtops.com/public/../vendor/
RUNTIME_PATH /home/wwwroot/myfxtops.com/public/../runtime/
LOG_PATH /home/wwwroot/myfxtops.com/public/../runtime/log/
CACHE_PATH /home/wwwroot/myfxtops.com/public/../runtime/cache/
TEMP_PATH /home/wwwroot/myfxtops.com/public/../runtime/temp/
CONF_PATH /home/wwwroot/myfxtops.com/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false