- <?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();


