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

2020-07-07  本文已影响0人  可乐_加冰_
public function index(){
    return view();
}

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


image.png

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


image.png

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

image.png
上一篇 下一篇

猜你喜欢

热点阅读