]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/ListController.php
update copyright headers
[syj.git] / application / controllers / ListController.php
index 9ce4d0e828f7812749a1536b53d0684379f7c65a..9dfac813582fb20222363dbd0fca0576d0f5867a 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class ListController extends Zend_Controller_Action
@@ -8,13 +8,10 @@ class ListController extends Zend_Controller_Action
     public function init() {
         $this->_helper->SyjSession->needsLogin();
 
-        $this->view->headScript()->appendFile('js/OpenLayers.js');
-        $this->view->headScript()->appendFile('js/prototype.js');
-        $this->view->headScript()->appendFile('js/utils.js');
-        $this->view->headScript()->appendFile('js/list.js');
+        $this->_helper->SyjMedias->addScripts('list');
 
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/list.css');
+        $this->view->headLink()->appendStylesheet('css/generic.css', 'all');
+        $this->view->headLink()->appendStylesheet('css/list.css', 'all');
         $this->view->headTitle($this->view->translate("my routes"));
     }