[0] TemplateNotFoundException in Think.php line 78

模板文件不存在:/www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../application/home/view/casestudy/casestudy.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('casestudy/casestudy', ['website' => ['id' => 2, 'company' => '...', 'phone' => ['4000-338-020'], ...], 'phone' => '4000-338-020', 'QQ' => '823367151', ...], []) in View.php line 127
  3. at View->fetch('casestudy/casestudy', [], [], []) in Controller.php line 108
  4. at Controller->fetch('casestudy/casestudy') in Casestudy.php line 35
  5. at Casestudy->index()
  6. at ReflectionMethod->invokeArgs(object(Casestudy), []) in App.php line 226
  7. at App::invokeMethod([object(Casestudy), 'index']) in App.php line 359
  8. at App::module(['home', 'Casestudy', 'index'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 134
  9. at App::run() in start.php line 18
  10. at require('/www/admin/www.ennuo...') in index.php line 28

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
_vstime 1600528223
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/index.php
PATH_INFO /home/Casestudy/index.html
QUERY_STRING s=/home/Casestudy/index.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /home/Casestudy/index.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.15.8
REMOTE_ADDR 45.194.199.54
REMOTE_PORT 54676
SERVER_ADDR 172.16.0.3
SERVER_PORT 80
SERVER_NAME www.chinacoso.org
REDIRECT_STATUS 200
HTTP_HOST www.chinacoso.org
HTTP_ACCEPT */*
HTTP_REFERER
HTTP_COOKIE _vstime=1600528223
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1600528229.5463
REQUEST_TIME 1600528229
Environment Variablesempty
ThinkPHP Constants
APP_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../application/
APPURL /
FILEURL /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public
THINK_VERSION 5.0.0
THINK_START_TIME 1600528229.5469
THINK_START_MEM 263376
EXT .php
DS /
THINK_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/thinkphp/
LIB_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/thinkphp/library/
CORE_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/thinkphp/library/think/
TRAIT_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/thinkphp/library/traits/
ROOT_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../
EXTEND_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../extend/
VENDOR_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../vendor/
RUNTIME_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../runtime/
LOG_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../runtime/log/
CACHE_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../runtime/cache/
TEMP_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../runtime/temp/
CONF_PATH /www/admin/www.chinacoso.org_80/wwwroot/wwwroot/public/../application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false
WEB_PATH www.chinacoso.org/