2017 © Pedro Peláez
 

library yaf-twig

Yaf framework using Twig is template engine

image

5ichong/yaf-twig

Yaf framework using Twig is template engine

  • Wednesday, June 21, 2017
  • by daxiong123
  • Repository
  • 0 Watchers
  • 0 Stars
  • 586 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 25 % Grown

The README.md

yaf-twig

Yaf using Twig is template engine, (*1)



Installation

To install Validator, simply:, (*2)

$ composer require 5ichong/yaf-twig

For latest commit version:, (*3)

$ composer require 5ichong/yaf-twig @dev

Requirements

Validator works with 7.0, 7.1., (*4)

Quick Start and Examples

Add to application.ini:, (*5)

[product]

application.view.ext = html

[devel : product]

application.twig.debug = true

Add to index.php:, (*6)

require __DIR__ . '/vendor/autoload.php';

Add to Bootstrap.php, (*7)


use Yaf\Application; use Yaf\Dispatcher; public function _initView(Dispatcher $dispatcher) { $conf = Application::app()->getConfig(); $options = !empty($conf->twig) ? $conf->twig->toArray() : []; $twig = new \Aichong\Twig(APP_PATH . "/views/", $options); $dispatcher->setView($twig); }

The Versions

21/06 2017

dev-master

9999999-dev

Yaf framework using Twig is template engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Weijian Zhang

21/06 2017

dev-develop

dev-develop

Yaf framework using Twig is template engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Weijian Zhang

21/06 2017

v0.0.1

0.0.1.0

Yaf framework using Twig is template engine

  Sources   Download

MIT

The Requires

 

The Development Requires

by Weijian Zhang