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 放在项目文件顶层
网友评论