summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-06-25 18:39:36 +0200
committerBjörn Geiger2011-06-25 18:39:36 +0200
commit2b34d18d46871783f27183067e7d8a0b05226843 (patch)
treeba47dd60b3d1471c4b54f043c48fabf49c87f1fc /application
parentFunctions.php vom PBS2 übernommen (diff)
downloadpoolctrl-2b34d18d46871783f27183067e7d8a0b05226843.tar.gz
poolctrl-2b34d18d46871783f27183067e7d8a0b05226843.tar.xz
poolctrl-2b34d18d46871783f27183067e7d8a0b05226843.zip
Bootstrap angepasst
Diffstat (limited to 'application')
-rw-r--r--application/Bootstrap.php73
1 files changed, 72 insertions, 1 deletions
diff --git a/application/Bootstrap.php b/application/Bootstrap.php
index 613100c..fd7f22f 100644
--- a/application/Bootstrap.php
+++ b/application/Bootstrap.php
@@ -1,8 +1,79 @@
<?php
+/*
+ * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
+ * This program is free software distributed under the GPL version 2.
+ * See http://gpl.openslx.org/
+ *
+ * If you have any feedback please consult http://feedback.openslx.org/ and
+ * send your suggestions, praise, or complaints to feedback@openslx.org
+ *
+ * General information about OpenSLX can be found at http://openslx.org/
+ */
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
+ protected function _initAutoloader()
+ {
+ setlocale(LC_ALL, "de_DE.UTF-8");
+ date_default_timezone_set('Europe/Berlin');
+ $moduleLoader = new Zend_Application_Module_Autoloader
+ (
+ array
+ (
+ 'namespace' => '',
+ 'basePath' => APPLICATION_PATH,
+ 'resourceTypes' => array(
+ 'form' => array(
+ 'path' => 'forms',
+ 'namespace' => 'Form',
+ )
+ )
+ )
+ );
+ }
+ protected function _initAutoloaders()
+ {
+ $this->getApplication()->setAutoloaderNamespaces(array('Poolctrl_'));
+ return $this;
+ }
+ protected function _initAuth(){
+ $auth = Zend_Auth::getInstance();
+ $auth->setStorage(new Zend_Auth_Storage_Session('auth'));
+ }
+ protected function _initDocType(){
+ $this->bootstrap('View');
+ $view = $this->getResource('View');
+ $view->doctype('XHTML1_STRICT');
+
+ }
+ function _initViewHelpers()
+ {
+
+ $this->bootstrap('layout');
+
+ $layout = $this->getResource('layout');
+ $view = $layout->getView();
+ $view->doctype('XHTML1_STRICT');
+ $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
+ $view->headLink()->appendStylesheet('/media/css/style.css');
+ $view->headLink()->appendStylesheet('/media/css/jquery-ui.css');
+ $view->headLink()->appendStylesheet('/media/css/jquery-ui-timepicker.css');
+ #$this->headScript()->appendFile('/media/js/jquery.min.js');
+ #$this->headScript()->appendFile('/media/js/jquery-ui.min.js');
+
+ $view->headTitle('pbs²')
+ ->setSeparator(' :: ');
+ Zend_Registry::set('dateformat' , 'Y-m-d H:i:s');
+ }
+ protected function _initPlugins()
+ {
+ $this->bootstrap('autoloaders');
+ $this->bootstrap('frontController');
+ $plugin = new Poolctrl_Controller_Plugin_Modularlayout();
+ $this->frontController->registerPlugin($plugin);
+
+ }
}
-
+include 'Functions.php';