X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FAccountController.php;h=9db12047c197b87330754f9013ad04e269a7ec3c;hp=c9c986ecba33ff6741ae1526acfb6c5344f892b1;hb=7ab93faefae14af39fc5449a2c3311dd68d2c0f9;hpb=db98e1f62272cff0b425133aa3b909c5cfa6183d diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index c9c986e..9db1204 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -1,23 +1,20 @@ _helper->SyjSession->needsLogin(); + $this->_helper->SyjUserManager->needsLogin(); + $this->_helper->SyjMedias->addScripts('account'); + $this->_helper->SyjMedias->addStyleSheets('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/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'));