thinkphp5.1 - twig使用

thinkphp5.1 - twig使用
1、安装按照:
https://github.com/yunwuxin/think-twig
Twig Template For ThinkPHP5

安装

composer require yunwuxin/think-twig
使用

配置文件里 template.type=Twig 即可

2、
使用:
public function index()
{
return $this->fetch("index");
}

参考:
其他人写的扩展:https://github.com/wdaglb/thinkphp-twig

posted on 2019-04-18 11:56  ZhYQ_note  阅读(446)  评论(0编辑  收藏  举报

导航