当前位置:   article > 正文

TP6模板渲染访问报错 Driver [Think] not supported. 解决方法

driver [think] not supported.

PHP渲染了一个页面,如下图:

访问报错:

 问题产生原因 :

Thinkphp 新版(6.0版本开始)不再内置 think-template 模板引擎,如果需要使用ThinkPHP 官方模板引擎,需要单独安装 think-view 模板引擎驱动扩展 。

解决方法 :

使用 composer 下载安装 think-view 和 think-throttle 模板引擎驱动扩展。

命令 :composer require topthink/think-view

            composer require topthink/think-throttle

问题解决,再次访问地址就可以正常展示了

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号