<?php
namespace app\admin\controller;
use think\facade\View;
class Login
{
public function index()
{
return View::fetch();
}
}
TP6不像TP5以前的是直接用,TP6还需要安装
1、要安装模板引擎
2、引入代码
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不像TP5以前的是直接用,TP6还需要安装
1、要安装模板引擎
2、引入代码
use think\facade\View;
return View::fetch();
相关推荐
精彩评论(0)