美文网首页
thinkphp6,tp6模板渲染、视图渲染方法

thinkphp6,tp6模板渲染、视图渲染方法

作者: 可乐_加冰_ | 来源:发表于2020-07-07 15:28 被阅读0次
public function index(){
    return view();
}

【需通过composer下载依赖库】: composer require topthink/think-view


image.png

相应的依赖库下载后再运行就好了。


image.png

开启调试模式:
根目录 .example.env文件直接更名为 .env文件

image.png

相关文章

网友评论

      本文标题:thinkphp6,tp6模板渲染、视图渲染方法

      本文链接:https://www.haomeiwen.com/subject/rmnaqktx.html