<?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();
微信扫一扫
<?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();
相关推荐