Setup doctype in bootstrap instead of layout.
This commit is contained in:
parent
3bc1f62535
commit
2408ff06dd
3 changed files with 5 additions and 5 deletions
|
|
@ -63,12 +63,14 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
$this->bootstrap('layout');
|
||||
|
||||
$view = $this->getResource('layout')->getView();
|
||||
|
||||
$view->doctype('XHTML1_STRICT');
|
||||
$view->setEncoding('UTF-8');
|
||||
$view->headMeta()->appendHttpEquiv('Content-Type','text/html;charset=utf-8');
|
||||
|
||||
// Set site title from application.ini
|
||||
$config = $this->getApplication()->getOptions();
|
||||
$view->headTitle($config['app']['name']);
|
||||
$view->headMeta()->appendHttpEquiv('Content-Type','text/html;charset=utf-8');
|
||||
|
||||
// Set helper path
|
||||
$view->addHelperPath('Fiktiv/View/Helper/', 'Fiktiv_View_Helper');
|
||||
|
|
|
|||
Reference in a new issue