thinkphp5.1 - twig使用

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

安装git

composer require yunwuxin/think-twig
使用github

配置文件里 template.type=Twig 便可thinkphp

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

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

相关文章
相关标签/搜索