TP 6.0.6 Response View output Bug

浏览:366 发布日期:2021/01/15 分类:ThinkPHP6专区 关键字: Response View
https://github.com/top-think/framework/blob/6.0/src/think/response/View.php

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);


最佳答案
评论( 相关
后面还有条评论,点击查看>>