Move some of the view related code from the Module class to the layout view script
[zf2.biz/galerie.git] / module / Application / view / layout / layout.phtml
index a9e37b8..00c4478 100644 (file)
@@ -1,9 +1,27 @@
-<?php echo $this->doctype() ?>
+<?php 
+$this->headTitle()->setSeparator(' - ')
+                  ->setAutoEscape(false);
+
+$basePath = $this->basePath();
+$this->headLink()->appendStylesheet($basePath . '/css/bootstrap.min.css');
+
+$this->headLink(array(
+            'rel'  => 'shortcut icon',
+            'type' => 'image/vnd.microsoft.icon',
+            'href' => $basePath . '/images/favicon.ico',
+        ));
+
+// HTML5 shim, for IE6-8 support of HTML elements
+$this->headScript()->appendFile($basePath . '/js/html5.js', 'text/javascript', 
+    array('conditional' => 'lt IE9',));
+
+echo $this->doctype();
+?>
 
 <html lang="en">
   <head>
     <meta charset="utf-8">
-    <?php echo $this->headTitle() ?>
+    <?php echo $this->headTitle('ZF2 Skeleton Application') ?>
 
     <?php echo $this->headMeta() ?>
 
       }
     </style>
 
-    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
-    <!--[if lt IE 9]>
-      <?php echo $this->placeholder('html5js') ?>
-    <![endif]-->
-
+    <!-- Scripts -->
     <?php echo $this->headScript() ?>
 
-    <!-- Le fav and touch icons -->
-    <?php echo $this->placeholder('favicon') ?>
-
   </head>
 
   <body>