summaryrefslogtreecommitdiffstats
path: root/application/Bootstrap.php
blob: f06c85b372f0a4a947800c96f76494a0024eccb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

	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->headTitle('pbs²')
             ->setSeparator(' :: ');
    }
}
include 'Functions.php';