[0] TemplateNotFoundException in Think.php line 82

template not exists:./template/web/default/public/404.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 82
  2. at Think->fetch('./template/web/defau...', ['pc_template' => './template/web/defau...', 'wap_template' => './template/wap/defau...', 'sitename' => '...', ...], []) in View.php line 163
  3. at View->fetch('public/404', ['pc_template' => './template/web/defau...', 'wap_template' => './template/wap/defau...', 'sitename' => '...', ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('public/404', ['seo_title' => '404', 'content' => '内【十大正规网赌软件】容不【正规靠谱赌博软件】存在']) in Index.php line 78
  5. at Index->exception('404', '内【十大正规网赌软件】容不存在') in Index.php line 41
  6. at Index->detail('p2', '1768