###CakePhp plugin that provides an ability of usage Twig template engine
- CakePHP: The Rapid Development Framework for PHP - http://cakephp.org
- Twig, the flexible, fast, and secure template language for PHP http://www.twig-project.org/
- 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