diff options
author | Sebastian Schmelzer | 2012-01-11 14:36:35 +0100 |
---|---|---|
committer | Sebastian Schmelzer | 2012-01-11 14:36:35 +0100 |
commit | fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e (patch) | |
tree | 6e6aaf749f34db8c7c7153c23ef85c57187430bb /application/Bootstrap.php | |
parent | API: mit addBootos kann man nun auch editieren (diff) | |
download | pbs2-fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e.tar.gz pbs2-fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e.tar.xz pbs2-fca04a6dab252eb9e8c0a92ce3b7e14b32e68d1e.zip |
format source files
Diffstat (limited to 'application/Bootstrap.php')
-rw-r--r-- | application/Bootstrap.php | 123 |
1 files changed, 59 insertions, 64 deletions
diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 45931e8..89a5846 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -1,4 +1,4 @@ -<?php +<? php /* * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg * This program is free software distributed under the GPL version 2. @@ -10,70 +10,65 @@ * 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('Pbs_')); - return $this; - } +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('Pbs_')); + 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 Pbs_Controller_Plugin_Modularlayout(); - $this->frontController->registerPlugin($plugin); - - } + 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 Pbs_Controller_Plugin_Modularlayout(); + $this->frontController->registerPlugin($plugin); + + } } include 'Functions.php'; |