[0] TemplateNotFoundException in Think.php line 171

模板文件不存在:./template/default/category.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/c...', ['current_site' => object(SiteModel), 'member' => null, 'menus' => object(Collection), ...], []) in View.php line 377
  3. at View->fetch('/category', ['current_site' => object(SiteModel), 'member' => null, 'menus' => object(Collection), ...], []) in Controller.php line 321
  4. at Controller->fetch('/category') in Index.php line 95
  5. at Index->category('hartanah')
  6. at ReflectionMethod->invokeArgs(object(Index), ['hartanah']) in Container.php line 789
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => 'hartanah', '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 ZZBcJr2@BKLC0ikPMjbCMwAAAAE
REDIRECT_REDIRECT_PHPRC /home/zgkaimeng7zlgak4adifmrednrg/others
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZZBcJr2@BKLC0ikPMjbCMwAAAAE
REDIRECT_PHPRC /home/zgkaimeng7zlgak4adifmrednrg/others
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID ZZBcJr2@BKLC0ikPMjbCMwAAAAE
PHPRC /home/zgkaimeng7zlgak4adifmrednrg/others
HTTP_X_FORWARDED_FOR 209.58.134.15
HTTP_X_REAL_IP 209.58.134.15
HTTP_HOST www.mrzamri.com
HTTP_CONNECTION close
HTTP_REFERER http://www.baidu.com/search/spider.htm
HTTP_X_APPLE_TZ 0
HTTP_X_APPLE_STORE_FRONT 143444,12
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_CACHE_CONTROL no-cache
CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36
HTTP_X_MICROSOFTAJAX Delta=true
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache Server at www.mrzamri.com Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.mrzamri.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 209.58.134.15
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 55344
REDIRECT_URL /index.php/category/hartanah/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /category/hartanah/
SCRIPT_NAME /index.php
PATH_INFO /category/hartanah/
PATH_TRANSLATED /home/zgkaimeng7zlgak4adifmrednrg/wwwroot/category/hartanah/
ORIG_PATH_INFO /index.php/category/hartanah/
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/category/hartanah/
PHP_SELF /index.php/category/hartanah/
REQUEST_TIME_FLOAT 1703959590.352
REQUEST_TIME 1703959590
Environment Variablesempty
ThinkPHP Constantsempty