]> dev.renevier.net Git - syj.git/blobdiff - application/controllers/AccountController.php
syj session controller helper
[syj.git] / application / controllers / AccountController.php
index 00de24e14940b121fbea0ec7529e00443696673f..76124908d504b90645d13658f53b87f5d9f0a7e1 100644 (file)
@@ -7,8 +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/highlight.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');
@@ -16,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) {