Add inlineScript() helper
authorJurian Sluiman <jurian@soflomo.com>
Sun, 29 Jul 2012 09:40:13 +0000 (11:40 +0200)
committerJurian Sluiman <jurian@soflomo.com>
Sun, 29 Jul 2012 09:40:13 +0000 (11:40 +0200)
For faster DOM parsing it is recommended to place some scripts just above
the </body> tag. Rendering the inlineScript() helper here makes it possible
to inject files in both the <head> and at the end of the <body>

module/Application/view/layout/layout.phtml

index 47812ed..86c887d 100644 (file)
@@ -52,5 +52,6 @@
 
     </div> <!-- /container -->
 
+  <?= $this->inlineScript()?>
   </body>
 </html>