0
点赞
收藏
分享

微信扫一扫

TP6 模板 View Driver [Think] not supported 还需要安装模板引擎

勇敢乌龟 2022-07-27 阅读 43


 

<?php
namespace app\admin\controller;
use think\facade\View;

class Login
{
public function index()
{

return View::fetch();
}
}

TP6 模板 View  Driver [Think] not supported 还需要安装模板引擎_模板引擎

TP6不像TP5以前的是直接用,TP6还需要安装

1、要安装模板引擎

TP6 模板 View  Driver [Think] not supported 还需要安装模板引擎_php_02

2、引入代码

TP6 模板 View  Driver [Think] not supported 还需要安装模板引擎_php_03

use think\facade\View;

return View::fetch();

 

 

举报

相关推荐

0 条评论