]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/AccountController.php
syj session controller helper
[syj.git] / application / controllers / AccountController.php
index 97f9fbc649d6a1250981ec3f502c1f50b7a49d6b..76124908d504b90645d13658f53b87f5d9f0a7e1 100644 (file)
@@ -7,7 +7,7 @@ class AccountController extends Zend_Controller_Action
 
     public function init() {
         $this->view->headScript()->appendFile('js/prototype.js');
-        $this->view->headScript()->appendFile('js/forms.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');
@@ -15,7 +15,7 @@ class AccountController extends Zend_Controller_Action
     }
 
     public function indexAction() {
-        $user = $this->view->loggedUser();
+        $user = $this->_helper->SyjSession->user();
         $request = $this->getRequest();
 
         if ($user === null) {