Archived
1
0
Fork 0

Bootstrap: Enable ZF's stream wrapper as fallback.

This commit is contained in:
Henrik Hautakoski 2014-07-16 16:26:10 +02:00
parent 29f24aede4
commit ebff2ccebf

View file

@ -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;
}