Skip to content
m3nt0r edited this page Jun 25, 2012 · 1 revision

There a two ways

  • via Archive

    Download the most current version as ZIP, unzip it and rename the extracted folder to twig. Put the twig folder inside your plugins folder and you are done.

  • via GitHub

    Just clone the repository directly into your app.

    cd plugins | git clone git://github.com/m3nt0r/cakephp-twig-view.git twig

Enabling the View

Inside your app_controller.php add the following:

class AppController extends Controller {
    public $view = 'Twig.Twig'; // use twig
}

That's all.

Clone this wiki locally