Skip to content

Instantly share code, notes, and snippets.

View mramsden's full-sized avatar

Marcus Ramsden mramsden

View GitHub Profile
@mramsden
mramsden / Bootstrap.php
Created December 27, 2009 09:53
This gist shows an approach to using Twig with the Zend Framework.
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
/* Other functions may have been omitted */
protected function _initTwigView()
{
$twigView = new ZExt_Twig(APPLICATION_PATH, APPLICATION_PATH."/modules");
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper("ViewRenderer");