X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FAccountController.php;h=9db12047c197b87330754f9013ad04e269a7ec3c;hp=40eba9ac68c003d5b1e62b5dc98a5721377191f2;hb=7ab93faefae14af39fc5449a2c3311dd68d2c0f9;hpb=1f6105289a49079809c2a4677b561bc82c62db88 diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index 40eba9a..9db1204 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -6,17 +6,15 @@ class AccountController extends Zend_Controller_Action { public function init() { - $this->_helper->SyjSession->needsLogin(); + $this->_helper->SyjUserManager->needsLogin(); $this->_helper->SyjMedias->addScripts('account'); + $this->_helper->SyjMedias->addStyleSheets('account'); - $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'));