记录:
首次加载模板文件时报错:Driver [Think] not supported.
原因:缺少模板驱动引擎
查看手册:
新版框架默认只能支持PHP原生模板,如果需要使用
thinkTemplate
模板引擎,需要安装think-view
扩展(该扩展会自动安装think-template
依赖库)。
composer require topthink/think-view
安装成功之后可以正常访问
记录:
首次加载模板文件时报错:Driver [Think] not supported.
原因:缺少模板驱动引擎
查看手册:
新版框架默认只能支持PHP原生模板,如果需要使用
thinkTemplate
模板引擎,需要安装think-view
扩展(该扩展会自动安装think-template
依赖库)。
composer require topthink/think-view
安装成功之后可以正常访问