Skip to content

Dmitry404/cakephp-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###CakePhp plugin that provides an ability of usage Twig template engine

How to install

  • Clone this repository to your plugins directory
$ cd app/plugins 
$ git clone git://github.com/Dmitry404/cakephp-twig.git
  • Init and update Twig library files
$ cd cakephp-twig
$ git submodule update --init
  • Make folder for cached templates as writable
$ chmod 777 app/plugins/cakephp-twig/tmp
  • Add to your AppController this property
public $view = 'cakephp-twig.Twig';
  • Add this code to your bootstrap.php
App::import('lib', 'cakephp-twig.autoloader');
CakePhpTwig_Autoloader::register();
  • Create your views with .htm (by default) extension

About

CakePhp plugin that provides an ability of usage Twig template engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages