tpadmin3.0和tp5.1临时取消模板布局

  $this->view->engine->layout(false);//这行代码加入需要取消模板布局的地方就可以生效
        return $this->fetch('add' ,['title'=>'你好']);
本案例及适用于tp5.1也适用于tpadmin3.0 ,其实是一样的,tpadmin3.0内部使用的就是tp5.1.
原文地址:https://www.cnblogs.com/xiaogou/p/11660622.html