Add viewport meta tag for smart phone scaling
authorEvan Coury <me@evancoury.com>
Wed, 7 Mar 2012 07:34:48 +0000 (00:34 -0700)
committerEvan Coury <me@evancoury.com>
Wed, 7 Mar 2012 07:34:48 +0000 (00:34 -0700)
This somehow got removed.

module/Application/view/layout/layout.phtml

index 622c108..e719d29 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() ?>