X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FAccountController.php;h=c79b4769cc84439a4fe273838d2e20c0b25c96d8;hb=8f53507b26e10f259abcd19a8ca3486b9a0bd6a8;hp=c9c986ecba33ff6741ae1526acfb6c5344f892b1;hpb=db98e1f62272cff0b425133aa3b909c5cfa6183d;p=syj.git diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index c9c986e..c79b476 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -1,23 +1,22 @@ _helper->SyjSession->needsLogin(); + $this->_helper->SyjUserManager->needsLogin(); + $this->_helper->SyjMedias->addScripts('account'); - $this->view->headScript()->appendFile('js/prototype.js'); - $this->view->headScript()->appendFile('js/utils.js'); - $this->view->headScript()->appendFile('js/account.js'); $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); + $this->view->headLink()->appendStylesheet('css/form.css', 'all'); $this->view->headLink()->appendStylesheet('css/account.css', 'all'); $this->view->headTitle($this->view->translate("my account")); } public function indexAction() { - $user = $this->_helper->SyjSession->user(); + $user = $this->_helper->SyjUserManager->current(); $request = $this->getRequest(); $form = new Syj_Form_Account(array('name' => 'accountform'));