[0] TemplateNotFoundException in Think.php line 171

模板文件不存在:./template/default/index/list.htm

  1. /**
  2. * 配置或者获取模板引擎参数
  3. * @access private
  4. * @param string|array $name 参数名
  5. * @param mixed $value 参数值
  6. * @return mixed
  7. */
  8. public function config($name, $value = null)
  9. {
  10. if (is_array($name)) {
  11. $this->template->config($name);
  12. $this->config = array_merge($this->config, $name);
  13. } elseif (is_null($value)) {
  14. return $this->template->config($name);
  15. } else {
  16. $this->template->$name = $value;
  17. $this->config[$name] = $value;
  18. }

Call Stack

  1. in Think.php line 171
  2. at Think->fetch('./template/default/i...', ['current_site' => object(SiteModel), 'member' => null, 'menus' => object(Collection), ...], []) in View.php line 377
  3. at View->fetch(null, ['current_site' => object(SiteModel), 'member' => null, 'menus' => object(Collection), ...], []) in Controller.php line 321
  4. at Controller->fetch(null) in Index.php line 181
  5. at Index->list('co_news', null)
  6. at ReflectionMethod->invokeArgs(object(Index), ['co_news', null]) in Container.php line 789
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => 'co_news', 'convert' => false]) in Module.php line 263
  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 369
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 259
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 273
  13. at Module->exec() in Dispatch.php line 335
  14. at Dispatch->run() in App.php line 863
  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 369
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 259
  19. at Middleware->dispatch(object(Request)) in App.php line 869
  20. at App->run() in index.php line 41

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
mike_home_lang chs
Sessionempty
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID ZgXn1QM4xtJ3BXtjWX3cpQAAAAg
REDIRECT_REDIRECT_PHPRC /home/zgkaimeng7zlgak4adifmrednrg/others
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgXn1QM4xtJ3BXtjWX3cpQAAAAg
REDIRECT_PHPRC /home/zgkaimeng7zlgak4adifmrednrg/others
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID ZgXn1QM4xtJ3BXtjWX3cpQAAAAg
PHPRC /home/zgkaimeng7zlgak4adifmrednrg/others
HTTP_X_FORWARDED_FOR 44.202.90.91
HTTP_X_REAL_IP 44.202.90.91
HTTP_HOST zgkaimeng.net
HTTP_CONNECTION close
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache Server at zgkaimeng.net Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME zgkaimeng.net
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 44.202.90.91
DOCUMENT_ROOT /home/zgkaimeng7zlgak4adifmrednrg/wwwroot
REQUEST_SCHEME http
CONTEXT_PREFIX /php-run-as-cgi
CONTEXT_DOCUMENT_ROOT /usr/php7.0/bin
SERVER_ADMIN webmaster@zgkaimeng
SCRIPT_FILENAME /home/zgkaimeng7zlgak4adifmrednrg/wwwroot/index.php
REMOTE_PORT 52640
REDIRECT_URL /index.php/news/co_news/633.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /news/co_news/633.html
SCRIPT_NAME /index.php
PATH_INFO /news/co_news/633.html
PATH_TRANSLATED /home/zgkaimeng7zlgak4adifmrednrg/wwwroot/news/co_news/633.html
ORIG_PATH_INFO /index.php/news/co_news/633.html
ORIG_SCRIPT_NAME /php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME /usr/php7.0/bin/php-cgi
ORIG_PATH_TRANSLATED /home/zgkaimeng7zlgak4adifmrednrg/wwwroot/index.php/news/co_news/633.html
PHP_SELF /index.php/news/co_news/633.html
REQUEST_TIME_FLOAT 1711663062.0604
REQUEST_TIME 1711663062
Environment Variablesempty
ThinkPHP Constantsempty