#0 [0]TemplateNotFoundException in Think.php line 146

模板文件不存在:/home/wwwroot/www-zswl/app/home/view/content/index.html

  1. }
  2. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  3. // 获取模板文件名
  4. $template = $this->parseTemplate($template);
  5. }
  6. // 模板不存在 抛出异常
  7. if (!is_file($template)) {
  8. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  9. }
  10. $this->template->fetch($template, $data);
  11. }
  12. /**
  13. * 渲染模板内容
  14. * @access public
  15. * @param string $template 模板内容

Call Stack

  1. in Think.php line 146
  2. at Think->fetch() in View.php line 90
  3. at View->think\{closure}() in View.php line 126
  4. at View->getContent() in View.php line 91
  5. at View->fetch()
  6. at call_user_func_array() in Facade.php line 96
  7. at Facade::__callStatic() in Content.php line 23
  8. at Content->index()
  9. at ReflectionMethod->invokeArgs() in Container.php line 344
  10. at Container->invokeReflectMethod() in Controller.php line 110
  11. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Controller.php line 113
  14. at Controller->exec() in Dispatch.php line 90
  15. at Dispatch->run() in Route.php line 772
  16. at Route->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in Pipeline.php line 66
  18. at Pipeline->then() in Route.php line 773
  19. at Route->dispatch() in Http.php line 216
  20. at Http->dispatchToRoute() in Http.php line 206
  21. at Http->think\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in MultiApp.php line 71
  23. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  24. at Pipeline->think\{closure}() in Pipeline.php line 66
  25. at Pipeline->then() in MultiApp.php line 72
  26. at MultiApp->handle()
  27. at call_user_func() in Middleware.php line 142
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in SessionInit.php line 67
  30. at SessionInit->handle()
  31. at call_user_func() in Middleware.php line 142
  32. at Middleware->think\{closure}() in Pipeline.php line 85
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in Http.php line 207
  35. at Http->runWithRequest() in Http.php line 170
  36. at Http->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID c58421206fea472d1b448421b886dfca
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=c58421206fea472d1b448421b886dfca
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_X_FORWARDED_PORT 9080
HTTP_X_FORWARDED_HOST www.zs-meta.com
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 104.206.1.142, 172.23.0.1
HTTP_X_REAL_IP 172.23.0.1
HTTP_HOST www.zs-meta.com
REDIRECT_STATUS 200
SERVER_NAME _
SERVER_PORT 80
SERVER_ADDR 172.17.0.5
REMOTE_PORT 35994
REMOTE_ADDR 172.16.53.96
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/wwwroot/www-zswl/public
DOCUMENT_URI /index.php
REQUEST_URI /Content/224.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//Content/224.html
SCRIPT_FILENAME /home/wwwroot/www-zswl/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1716100747.8041
REQUEST_TIME 1716100747