[0] TemplateNotFoundException in Smarty.php line 65

模板文件不存在:/home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/app/home/view/cases/view.html

  1. * @return void
  2. */
  3. public function fetch($template, $data = [], $config = []) {
  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. // 定义模板常量
  15. $request = request();
  16. $default = [
  17. '__ROOT__' => pathinfo($request->baseFile(true), PATHINFO_DIRNAME),
  18. '__SELF__' => $request->url(TRUE),
  19. '__APP__' => $request->baseFile(TRUE)

Call Stack

  1. in Smarty.php line 65
  2. at Smarty->fetch('cases/view', ['varsReturned' => false, 'js' => ['jquery-1.8.3.min', 'jquery.flexslider-mi...', 'wow', ...], 'css' => ['animate.min.css', 'common.css', 'style.css', ...], ...], []) in View.php line 189
  3. at View->fetch('cases/view', [], []) in Controller.php line 161
  4. at Controller->fetch('cases/view', [], []) in WooApp.php line 661
  5. at WooApp->fetch('view') in WooApp.php line 689
  6. at WooApp->finish() in Container.php line 407
  7. at Container->invokeReflectMethod(object(Cases), object(ReflectionMethod), ['id' => '79', 'convert' => false]) in Module.php line 132
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 137
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER changhongiot
HOME /home/changhongiotmcghcaanpg7htofnmgmigoot
FCGI_ROLE RESPONDER
REDIRECT_UNIQUE_ID ZgWKydXHLZplIWv201tWuwAAAAw
REDIRECT_PATH_INFO cases/79
REDIRECT_STATUS 200
UNIQUE_ID ZgWKydXHLZplIWv201tWuwAAAAw
HTTP_X_FORWARDED_FOR 54.224.90.25
HTTP_X_REAL_IP 211.149.140.122
HTTP_HOST www.gs-biogas.com
HTTP_CONNECTION close
HTTP_FROM_HTTPS on
HTTP_SSL_FLAG SSL
HTTP_ACCEPT_ENCODING gzip
HTTP_X_FORWARDED_PROTO https
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache Server at www.gs-biogas.com Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.gs-biogas.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 54.224.90.25
DOCUMENT_ROOT /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public
SERVER_ADMIN webmaster@changhongiot
SCRIPT_FILENAME /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public/index.php
REMOTE_PORT 44970
REDIRECT_URL /cases/79
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /cases/79
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711639241.8749
REQUEST_TIME 1711639241
Environment Variablesempty
ThinkPHP Constants
DS /
ROOT_PATH /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/
APP_PATH /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/app/
WWW_ROOT /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/public/
WOO_PATH /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/woo/
ADDONS_PATH /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/addons/
APP_CACHE_DIR /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/data/cache/
SMARTY_DIR /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/include/smarty-3.1.27/libs/
SMARTY_SYSPLUGINS_DIR /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/include/smarty-3.1.27/libs/sysplugins/
SMARTY_PLUGINS_DIR /home/changhongiotmcghcaanpg7htofnmgmigoot/wwwroot/include/smarty-3.1.27/libs/plugins/
SMARTY_MBSTRING true
SMARTY_RESOURCE_CHAR_SET UTF-8
SMARTY_RESOURCE_DATE_FORMAT %b %e, %Y
SMARTY_SPL_AUTOLOAD 0