From: Jurian Sluiman Date: Sun, 29 Jul 2012 09:38:17 +0000 (+0200) Subject: Prepend styles in layout X-Git-Url: http://git.inspyration.org/?p=zf2.biz%2Fapplication_blanche.git;a=commitdiff_plain;h=7f64c8d07b4cc47a96039a9553ddf70084bbac43 Prepend styles in layout When view scripts append styles for the headLink() helper, those are now really registered last. --- diff --git a/module/Application/view/layout/layout.phtml b/module/Application/view/layout/layout.phtml index ee643f2..a26b180 100644 --- a/module/Application/view/layout/layout.phtml +++ b/module/Application/view/layout/layout.phtml @@ -9,9 +9,9 @@ headLink(array('rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basePath() . '/images/favicon.ico')) - ->appendStylesheet($this->basePath() . '/css/bootstrap.min.css') - ->appendStylesheet($this->basePath() . '/css/style.css') - ->appendStylesheet($this->basePath() . '/css/bootstrap-responsive.min.css') ?> + ->prependStylesheet($this->basePath() . '/css/bootstrap-responsive.min.css') + ->prependStylesheet($this->basePath() . '/css/style.css') + ->prependStylesheet($this->basePath() . '/css/bootstrap.min.css') ?> headScript()->appendFile($this->basePath() . '/js/html5.js', 'text/javascript', array('conditional' => 'lt IE 9',))