美文网首页
【tp6】Driver [Think] not supporte

【tp6】Driver [Think] not supporte

作者: 戬谷stone | 来源:发表于2019-11-18 10:34 被阅读0次

tp6 进来就遇到这个问题  :Driver [Think] not supported

解决办法,composer运行:  

composer require topthink/think-view

D:\WWW\wanshuo>composer require topthink/think-view

Using version ^1.0 for topthink/think-view

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

Package operations: 2 installs, 0 updates, 0 removals

  - Installing topthink/think-template (v2.0.7): Downloading (100%)

  - Installing topthink/think-view (v1.0.13): Downloading (100%)

Writing lock file

Generating autoload files

> @php think service:discover

Succeed!

> @php think vendor:publish

File D:\WWW\wanshuo\config\trace.php exist!

Succeed!

然后就可以了

发现路径为

至此,控制器 ->  视图就通了

如果要吧view 放在项目文件顶层

config  -> view ->      "view_path"  =>  "../view/",

相关文章

网友评论

      本文标题:【tp6】Driver [Think] not supporte

      本文链接:https://www.haomeiwen.com/subject/ehevictx.html