bifen/eidt.html
73 /
74 public function fetch($template, $data = [], $config = [])
75 {
76 if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
77 // 获取模板文件名
78 $template = $this->parseTemplate($template);
79 }
80 // 模板不存在 抛出异常
81 if (!is_file($template)) {
82 throw new TemplateNotFoundException('template not exists:' . $template, $template);
83 }
84 // 记录视图信息
85 App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
86 $this->template->fetch($template, $data, $config);
87 }
88
89 /*
90 * 渲染模板内容
91 * @access public
Call Stack
这个问题我在你另外一个问答回答了,你仔细看看,主要是要在后端加一个header('Content-Type: application/json');