]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/TermsofuseController.php
cache js, css and png files
[syj.git] / application / controllers / TermsofuseController.php
index e1b8838b33332ddcd7d766b6c7ded1ccab3d1d81..20b99e2ee2d0654b10282505cef1b284d93ff38b 100644 (file)
@@ -1,14 +1,12 @@
 <?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 TermsofuseController extends Zend_Controller_Action
 {
     public function indexAction() {
-        $this->view->headLink()->appendStylesheet('css/generic.css');
-        $this->view->headLink()->appendStylesheet('css/termsofuse.css');
-        $this->view->headScript()->appendFile('js/prototype.js');
-        $this->view->headScript()->appendFile('js/termsofuse.js');
+        $this->_helper->SyjMedias->addStyleSheets('termsofuse');
         $this->view->headTitle($this->view->translate("terms of use"));
+        $this->view->rawmode = ($this->getRequest()->getQuery('format') == 'raw');
     }
 }