Dans mon bootstrap, j'ai ce code,Impossible d'obtenir la sortie de DOCTYPE dans Zend Framework
$view = new Zend_View();
$view->setEncoding('UTF-8');
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
$viewRenderer->initView();
$viewRenderer->view->doctype('XHTML1_TRANSITIONAL');
Zend_Layout::startMvc(
array(
'layoutPath' => dirname(__FILE__) . '/layouts/scripts/'
)
);
Dans mon layout.phtml, j'ai,
<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php $this->headTitle()->append('Site Title'); ?>
<?php echo $this->headTitle(); ?>
</head>
<body>
<div class="dp100">
<?php
echo $this->layout()->content;
?>
</div>
</body>
</html>
encore, je ne voir la déclaration de doctype attendue dans ma page HTML finale.
Vous devriez accepter cela comme une solution – Ashley