TP 6.0.6 Response View output 方法 Bug
isContent 选项无效,均使用fetch,未使用display
-------------------------------------------
/**
* 处理数据
* @access protected
* @param mixed $data 要处理的数据
* @return string
*/
protected function output($data): string
{
// 渲染模板输出
return $this->view->filter($this->filter)
->fetch($data, $this->vars, $this->isContent);
}
$this->view->filter($this->filter);
return $this->isContent?
$this->view->display($data, $this->vars):
$this->view->fetch($data, $this->vars);
最佳答案
