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

相關文章
相關標籤/搜索