Prepend styles in layout
authorJurian Sluiman <jurian@soflomo.com>
Sun, 29 Jul 2012 09:38:17 +0000 (11:38 +0200)
committerJurian Sluiman <jurian@soflomo.com>
Sun, 29 Jul 2012 09:38:17 +0000 (11:38 +0200)
When view scripts append styles for the headLink() helper, those are now
really registered last.

module/Application/view/layout/layout.phtml

index ee643f2..a26b180 100644 (file)
@@ -9,9 +9,9 @@
 
     <!-- Le styles -->
     <?php echo $this->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') ?>
 
     <!-- Scripts -->
     <?php echo $this->headScript()->appendFile($this->basePath() . '/js/html5.js', 'text/javascript', array('conditional' => 'lt IE 9',))