36 lines
939 B
PHP
36 lines
939 B
PHP
<?php
|
|
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|
{
|
|
//Initialisation global des paramètres de vue
|
|
protected function _initViewSettings()
|
|
{
|
|
$this->bootstrap('view');
|
|
|
|
$view = $this->getResource('view');
|
|
|
|
/*
|
|
* Si on détecte un périphérique mobile alors on charge
|
|
* les bons scripts
|
|
$theme = 'mobile';
|
|
$path = realpath(APPLICATION_PATH.'/views/'.$theme);
|
|
$view = new Zend_View();
|
|
$view->addBasePath($path);
|
|
*/
|
|
|
|
|
|
$view->setEncoding('UTF-8');
|
|
$view->doctype('XHTML1_STRICT');
|
|
$view->headMeta()
|
|
->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
|
|
->appendHttpEquiv('Content-Language', 'fr-FR');
|
|
//$view->headLink()
|
|
// ->appendStylesheet('/styles/main.css', 'all');
|
|
$view->headTitle()->setSeparator(' - ');
|
|
$view->headTitle('Extranet Scores & Décisions');
|
|
}
|
|
|
|
//protected function _initLogging(){}
|
|
//protected function _initDb(){}
|
|
}
|
|
|