dwoo with zend framework

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
function _initDwoo()
{
include_once ‘dwooAutoload.php’;

$viewInterface = new Dwoo_Adapters_ZendFramework_View ( array (
‘engine’ => array (
‘compileDir’ => realpath(APPLICATION_PATH . ‘/../tmp/templates/compiled’),  // calls the $dwoo->setCompileDir() method
‘cacheDir’ => realpath(APPLICATION_PATH . ‘/../tmp/templates/cache’)),  // calls the $dwoo->setCacheDir() method
‘compiler’ => array (
‘autoEscape’ => true ) ) );// calls $compiler->setAutoEscape()

$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer ( $viewInterface );
Zend_Controller_Action_HelperBroker::addHelper ( $viewRenderer );

return;
}

dwoo_zend_framework

Advertisements