diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php index b7f74022..d5904df5 100644 --- a/application/controllers/IndexController.php +++ b/application/controllers/IndexController.php @@ -20,12 +20,12 @@ class IndexController extends Zend_Controller_Action $request = $this->getRequest(); $auth = Zend_Auth::getInstance(); - $user = $auth->getIdentity(); - $this->view->fields = $fields; + $user = $auth->getIdentity(); //Chargement de la structure des champs et des préférences utilisateurs require_once 'Scores/Field.php'; - $field = new Fields($user->username); + $fields = new Fields($user->username); + $this->view->fields = $fields; // Chargement des critères de ciblage à partir de l'enregistrement en bdd $id = $request->getParam('id', 0);