]> dev.renevier.net Git - syj.git/blobdiff - application/layouts/scripts/layout.phtml
insert doctype with zend helper
[syj.git] / application / layouts / scripts / layout.phtml
index dfbbaf51467506538d61f970046de72101100a59..81ee343b58082ce2f11e7fdc02f4dc58720942aa 100644 (file)
@@ -1,9 +1,16 @@
-<!doctype html>
+<?php
+    $doctype = $this->getHelper('Doctype')->setDoctype('HTML5');
+    echo $doctype . PHP_EOL;
+?>
 <html lang="<?php echo $this->localeShort();?>">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
 
 <?php
+    echo $this->headMeta()->setIndent(4) . PHP_EOL;
+    echo $this->headBase()->setIndent(4) . PHP_EOL;
+    echo $this->headTitle()->setIndent(4) . PHP_EOL;
+    echo $this->headLink()->setIndent(4) . PHP_EOL;
 
     if ($this->jslocales) {
         $syjStrings = new phptojs\JsObject('SyjStrings');
@@ -17,9 +24,6 @@
         $this->headScript()->prependScript((string) $syjStrings);
     }
 
-    echo $this->headBase()->setIndent(4) . PHP_EOL;
-    echo $this->headTitle()->setIndent(4) . PHP_EOL;
-    echo $this->headLink()->setIndent(4) . PHP_EOL;
     echo $this->headScript()->setIndent(4) . PHP_EOL;
 
 ?>