勇敢乌龟

关注

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 还需要安装模板引擎_模板引擎

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

 

 

相关推荐

颜娘娘的碎碎念

TP6 安装后报错Driver [Think] not supported.

颜娘娘的碎碎念 105 0 0

宁静的猫

Tp6.0报错Driver [Think] not supported.

宁静的猫 171 0 0

waaagh

thinkphp6 Driver [Think] not supported.

waaagh 16 0 0

GhostInMatrix

安装tp6

GhostInMatrix 161 0 0

爱上流星雨

宝塔安装tp6

爱上流星雨 75 0 0

凌得涂

tp5 tp6 模板/视图 中使用内置的PHP函数 explode()函数

凌得涂 188 0 0

晒大太阳了

compose安装tp6 Swoole扩展

晒大太阳了 122 0 0

zmhc

tp6安装百度编辑器

zmhc 42 0 0

勇敢的趙迦禾

tp6安装及开启多应用模式的使用

勇敢的趙迦禾 138 0 0

西特张

golang web学习随便记6-模板引擎

西特张 82 0 0

精彩评论(0)

0 0 举报