ThinkPHP6.0Driver [Think] not supported.

ThinkPHP6.0Driver [Think] not supported.

原因分析: 视图功能由 \think\View 类配合视图驱动(也即模板引擎驱动)类一起完成,新版仅内置了PHP原生模板引擎(主要用于内置的异常页面输出),如果需要使用其它的模板引擎需要单独安装相应的模板引擎扩展

解决方法: 如果需要使用 think-template 模板引擎,只需要安装 think-view 模板引擎驱动。

composer require topthink/think-view

如果是拉取别人的项目,项目依赖里已经有 think-view,那么可以直接 composer install