diff options
author | michael pereira | 2011-03-15 14:23:01 +0100 |
---|---|---|
committer | michael pereira | 2011-03-15 14:23:01 +0100 |
commit | 252877f42ecf7513be5b793aec4e1a237d208c1c (patch) | |
tree | 8895f2d6c5bac20148ab8804358719d5a87b027e /application/Bootstrap.php | |
parent | Ressource Ausgabe angepasst (diff) | |
parent | Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff) | |
download | pbs2-252877f42ecf7513be5b793aec4e1a237d208c1c.tar.gz pbs2-252877f42ecf7513be5b793aec4e1a237d208c1c.tar.xz pbs2-252877f42ecf7513be5b793aec4e1a237d208c1c.zip |
Bootstrap mergke
Diffstat (limited to 'application/Bootstrap.php')
-rw-r--r-- | application/Bootstrap.php | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 8d672bf..fe469ce 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,17 +37,26 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap } function _initViewHelpers() { - + $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'; |