X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FAccountController.php;h=c79b4769cc84439a4fe273838d2e20c0b25c96d8;hb=0722c496ca63f30937427e3bf8fbdd5cfee2c83d;hp=f1d977facaf70ec4818cc3ba20b026c57b8326c9;hpb=ec061a75fe57a25eb7ef0894f5e723397ba35472;p=syj.git diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index f1d977f..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'); - $this->view->headLink()->appendStylesheet('css/account.css'); + $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')); @@ -68,7 +67,7 @@ class AccountController extends Zend_Controller_Action protected function _jsLocaleStrings() { $this->view->jslocales = array( - 'notEmptyField' => __("Value is required and can't be empty"), + 'notEmptyField' => __("Value is required"), 'passwordNoMatchWarn' => __("Password do not match"), 'passwordLenghtWarn' => array(__("At least %d characters"), 6), 'nochangeWarn' => __("You have made no change"),