Bootstrap: Enable ZF's stream wrapper as fallback.
This commit is contained in:
parent
29f24aede4
commit
ebff2ccebf
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue