diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 7b4b616..78e56ca 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -78,6 +78,11 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap $view->headScript()->appendFile('http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'); Zend_Locale::setDefault('sv_SE'); + + // Enable ZF's stream wrapper if php's open tag is disabled. + if (!ini_get('short_open_tag')) { + $view->setUseStreamWrapper(true); + } return $view; } @@ -101,7 +106,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap $frontController->registerPlugin(new Fiktiv_Controller_Plugin_Language()); $frontController->registerPlugin(new Fiktiv_Controller_Plugin_Navigation()); $frontController->registerPlugin(new Fiktiv_Controller_Plugin_Layout()); - + return $frontController; }