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');
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">
|
||||
<?=$this->doctype()?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<?=$this->headTitle() . "\n"?>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<?=$this->doctype()?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<?=$this->headTitle() . "\n" /* Newline for pretty source :) */ ?>
|
||||
|
|
|
|||
Reference in a new issue