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

Вашият коментар

Попълнете полетата по-долу или кликнете върху икона, за да влезете:

WordPress.com лого

You are commenting using your WordPress.com account. Log Out / Промяна )

Twitter picture

You are commenting using your Twitter account. Log Out / Промяна )

Facebook photo

You are commenting using your Facebook account. Log Out / Промяна )

Google+ photo

You are commenting using your Google+ account. Log Out / Промяна )

Connecting to %s

%d bloggers like this: