<?php
namespace app\admin\controller;
use think\facade\View;
class Login
{
public function index()
{
return View::fetch();
}
}
![TP6 模板 View Driver [Think] not supported 还需要安装模板引擎_模板引擎](https://file.cfanz.cn/uploads/png/2022/07/27/2/ca89Z7e1IQ.png)
TP6不像TP5以前的是直接用,TP6还需要安装
1、要安装模板引擎
![TP6 模板 View Driver [Think] not supported 还需要安装模板引擎_php_02](https://file.cfanz.cn/uploads/png/2022/07/27/2/bdf5D99W21.png)
2、引入代码
![TP6 模板 View Driver [Think] not supported 还需要安装模板引擎_php_03](https://file.cfanz.cn/uploads/png/2022/07/27/2/7M0fJ29a17.png)
use think\facade\View;
return View::fetch();
TP6 模板 View Driver [Think] not supported 还需要安装模板引擎
阅读 45
2022-07-27
<?php
namespace app\admin\controller;
use think\facade\View;
class Login
{
public function index()
{
return View::fetch();
}
}
![TP6 模板 View Driver [Think] not supported 还需要安装模板引擎_模板引擎](https://file.cfanz.cn/uploads/png/2022/07/27/2/ca89Z7e1IQ.png)
TP6不像TP5以前的是直接用,TP6还需要安装
1、要安装模板引擎
![TP6 模板 View Driver [Think] not supported 还需要安装模板引擎_php_02](https://file.cfanz.cn/uploads/png/2022/07/27/2/bdf5D99W21.png)
2、引入代码
![TP6 模板 View Driver [Think] not supported 还需要安装模板引擎_php_03](https://file.cfanz.cn/uploads/png/2022/07/27/2/7M0fJ29a17.png)
use think\facade\View;
return View::fetch();
相关推荐
精彩评论(0)