5.3 获取模板执行结果

优质
小牛编辑
123浏览
2023-12-01

控制器中获取模板执行结果方法为:fetch()

而将内容输出方法为:display()

代码如下,获取模板执行结果:

$content=$this->fetch('Blog.show');