From 66d8069d91653a1e9eed65d2671daf383f958050 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Sun, 13 May 2012 13:59:15 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20pour=20la=20suppression=20du=20c?= =?UTF-8?q?rit=C3=A8re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/IndexController.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/application/controllers/IndexController.php b/application/controllers/IndexController.php index 200c9f9b..257c1a0c 100644 --- a/application/controllers/IndexController.php +++ b/application/controllers/IndexController.php @@ -34,15 +34,21 @@ Class IndexController extends Zend_Controller_Action { $this->_helper->layout()->disableLayout(); - + $nameCritereToDelete = $this->getRequest()->getParam('critere'); $fields = new Scores_Fields(); - $fields->unsetCritere($this->getRequest()->getParam('critere')); + $fields->unsetCritere($nameCritereToDelete); + + //Comptage + require_once 'Scores/Ciblage.php'; + $ciblage = new Ciblage($fields->getValues()); + + $total = $ciblage->execute(); + $insee = $ciblage->calculRedevanceInsee(); + + $fields->setNb('total', $total); + $fields->setNb('insee', $insee); - - $objet = new Object_Comptage(); - $objet->count(null, null); $this->_redirect('/'); } -} - +} \ No newline at end of file