Add viewport meta tag for smart phone scaling
authorEvan Coury <me@evancoury.com>
Sat, 25 Feb 2012 12:55:56 +0000 (05:55 -0700)
committerEvan Coury <me@evancoury.com>
Sat, 25 Feb 2012 12:55:56 +0000 (05:55 -0700)
module/Application/view/layout/layout.phtml

index 4f4ed2a..4d3c4e6 100644 (file)
@@ -25,7 +25,7 @@ echo $this->doctype();
     <meta charset="utf-8">
     <?php echo $this->headTitle('ZF2 Skeleton Application') ?>
 
-    <?php echo $this->headMeta() ?>
+    <?php echo $this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1.0') ?>
 
     <!-- Le styles -->
     <?php echo $this->headLink() ?>