Zend Framework doctype çıkışını alınamıyor

0 Cevap php

Benim bootstrap, ben bu kod var,

    $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/'
                    )
    );

Benim layout.phtml, ben var,

<?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>

Still, I do not see the expected doctype declaration in my final HTML page.

0 Cevap