Modification pour la suppression du critère

This commit is contained in:
Michael RICOIS 2012-05-13 13:59:15 +00:00
parent 1d261f6c7f
commit 66d8069d91

View File

@ -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('/');
}
}