X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FListController.php;h=e94088383fba22f336eb663ea2ed9e4bd4749094;hb=014347ecde920ac7cb445fbed059f3b67f80336f;hp=9ce4d0e828f7812749a1536b53d0684379f7c65a;hpb=2d66d0fe742edb3d91af7f76154619ecbcf75c6d;p=syj.git diff --git a/application/controllers/ListController.php b/application/controllers/ListController.php index 9ce4d0e..e940883 100644 --- a/application/controllers/ListController.php +++ b/application/controllers/ListController.php @@ -1,25 +1,21 @@ _helper->SyjSession->needsLogin(); + $this->_helper->SyjUserManager->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->_helper->SyjMedias->addStyleSheets('list'); - $this->view->headLink()->appendStylesheet('css/generic.css'); - $this->view->headLink()->appendStylesheet('css/list.css'); $this->view->headTitle($this->view->translate("my routes")); } public function indexAction() { - $user = $this->_helper->SyjSession->user(); + $user = $this->_helper->SyjUserManager->current(); $pathMapper = new Syj_Model_PathMapper(); $list = $pathMapper->fetchByCreator($user); $paginator = Zend_Paginator::factory($list);