From 0f4956ac40ff79f8b1262fa8f6206107350cf7e2 Mon Sep 17 00:00:00 2001 From: Jurian Sluiman Date: Sun, 29 Jul 2012 11:39:18 +0200 Subject: [PATCH] Prepend scripts in layout When view scripts append scripts based on jQuery, they are registered last so jQuery is already loaded. --- module/Application/view/layout/layout.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Application/view/layout/layout.phtml b/module/Application/view/layout/layout.phtml index a26b180..47812ed 100644 --- a/module/Application/view/layout/layout.phtml +++ b/module/Application/view/layout/layout.phtml @@ -14,8 +14,8 @@ ->prependStylesheet($this->basePath() . '/css/bootstrap.min.css') ?> - headScript()->appendFile($this->basePath() . '/js/html5.js', 'text/javascript', array('conditional' => 'lt IE 9',)) - ->appendFile($this->basePath() . '/js/jquery-1.7.2.min.js') ?> + headScript()->prependFile($this->basePath() . '/js/html5.js', 'text/javascript', array('conditional' => 'lt IE 9',)) + ->prependFile($this->basePath() . '/js/jquery-1.7.2.min.js') ?> -- 1.7.10.4