From db7af7f8e368b843840759150e7fcca825663a44 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 15 Mar 2011 13:57:21 +0100 Subject: Eigene Layouts in jedem Module hinzugefügt --- application/Bootstrap.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'application/Bootstrap.php') diff --git a/application/Bootstrap.php b/application/Bootstrap.php index f9ee092..efdb785 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -15,10 +15,16 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap 'path' => 'forms/', 'namespace' => 'Form', ) - ) + ) ) ); } + protected function _initAutoloaders() + { + $this->getApplication()->setAutoloaderNamespaces(array('Pbs_')); + return $this; + } + protected function _initAuth(){ $auth = Zend_Auth::getInstance(); $auth->setStorage(new Zend_Auth_Storage_Session('auth')); @@ -31,15 +37,24 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap } function _initViewHelpers() { - $this->bootstrap('layout'); + $this->bootstrap('layout'); $layout = $this->getResource('layout'); $view = $layout->getView(); - + # print_a($layout); $view->doctype('XHTML1_STRICT'); $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8'); $view->headLink()->appendStylesheet('/media/css/style.css'); $view->headTitle('pbs²') ->setSeparator(' :: '); } + protected function _initPlugins() + { + $this->bootstrap('autoloaders'); + $this->bootstrap('frontController'); + $plugin = new Pbs_Controller_Plugin_Modularlayout(); + $this->frontController->registerPlugin($plugin); + + } + } include 'Functions.php'; -- cgit v1.2.3-55-g7522