From 0d7257d63d66bbd4ebcabb617af898e131ed6c54 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 11 Jan 2012 16:14:17 +0000 Subject: [PATCH] correction assignation vue --- application/controllers/IndexController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);