summaryrefslogtreecommitdiffstats
path: root/application/Bootstrap.php
diff options
context:
space:
mode:
authorSimon2011-03-15 13:57:21 +0100
committerSimon2011-03-15 13:57:21 +0100
commitdb7af7f8e368b843840759150e7fcca825663a44 (patch)
treef9f9b88261c895fb849f9f367d032b536e3f6667 /application/Bootstrap.php
parentlinks korrigiert, dev ist nun lauffähig (diff)
downloadpbs2-db7af7f8e368b843840759150e7fcca825663a44.tar.gz
pbs2-db7af7f8e368b843840759150e7fcca825663a44.tar.xz
pbs2-db7af7f8e368b843840759150e7fcca825663a44.zip
Eigene Layouts in jedem Module hinzugefügt
Diffstat (limited to 'application/Bootstrap.php')
-rw-r--r--application/Bootstrap.php21
1 files changed, 18 insertions, 3 deletions
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';