summaryrefslogtreecommitdiffstats
path: root/application/Bootstrap.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-08 13:45:49 +0200
committerBjörn Geiger2011-09-08 13:45:49 +0200
commiteb21e13dcdd038315d0ad1ff4941d1069af9b977 (patch)
treef01bcd0cc3e5efa56cec23f650582f6d33af8481 /application/Bootstrap.php
parentsome changes (diff)
downloadpoolctrl-eb21e13dcdd038315d0ad1ff4941d1069af9b977.tar.gz
poolctrl-eb21e13dcdd038315d0ad1ff4941d1069af9b977.tar.xz
poolctrl-eb21e13dcdd038315d0ad1ff4941d1069af9b977.zip
kleine korrekturen
Diffstat (limited to 'application/Bootstrap.php')
-rw-r--r--application/Bootstrap.php73
1 files changed, 36 insertions, 37 deletions
diff --git a/application/Bootstrap.php b/application/Bootstrap.php
index c238a12..6f3a58e 100644
--- a/application/Bootstrap.php
+++ b/application/Bootstrap.php
@@ -13,27 +13,27 @@
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
+ {
+ setlocale(LC_ALL, "de_DE.UTF-8");
+ date_default_timezone_set('Europe/Berlin');
+ $moduleLoader = new Zend_Application_Module_Autoloader
+ (
+ array
(
- array
- (
'namespace' => '',
'basePath' => APPLICATION_PATH,
'resourceTypes' => array(
'form' => array(
'path' => 'forms',
'namespace' => 'Form',
- )
- )
- )
- );
- }
- protected function _initAutoloaders()
+ )
+ )
+ )
+ );
+ }
+ protected function _initAutoloaders()
{
- $this->getApplication()->setAutoloaderNamespaces(array('Poolctrl_'));
+ $this->getApplication()->setAutoloaderNamespaces(array('Poolctrl_' => 'Poolctrl', 'Poolctrl_Validate_' => 'Poolctrl/Validator/'));
return $this;
}
@@ -42,36 +42,35 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
$auth->setStorage(new Zend_Auth_Storage_Session('auth'));
}
protected function _initDocType(){
- $this->bootstrap('View');
- $view = $this->getResource('View');
- $view->doctype('XHTML1_STRICT');
-
- }
+ $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/jquery-ui-1.8.16.custom.css');
- $view->headLink()->appendStylesheet('/media/css/jquery-ui-timepicker.css');
- $view->headLink()->appendStylesheet('/media/css/style.css');
-
- $view->headTitle('poolctrl')
- ->setSeparator(' :: ');
- Zend_Registry::set('dateformat' , 'Y-m-d H:i:s');
- }
- protected function _initPlugins()
+ {
+
+ $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/jquery-ui-1.8.16.custom.css');
+ $view->headLink()->appendStylesheet('/media/css/jquery-ui-timepicker.css');
+ $view->headLink()->appendStylesheet('/media/css/style.css');
+
+ $view->headTitle('poolctrl')
+ ->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';
+include 'Functions.php'; \ No newline at end of file