Rechargement des critères

This commit is contained in:
Michael RICOIS 2012-05-18 08:26:27 +00:00
parent b09c5dfd97
commit 3b3df7a964

View File

@ -29,10 +29,9 @@ class Application_Controller_Plugin_Comptage extends Zend_Controller_Plugin_Abst
//On charge les critères
$session->setCriteres(json_decode($row->criteres, 'true'));
//Réalise le comptage
require_once 'Scores/Field.php';
require_once 'Scores/Ciblage.php';
$field = new Fields();
$ciblage = new Ciblage($field->getValues());
$fields = new Scores_Fields();
$ciblage = new Ciblage($fields->getValues());
$total = $ciblage->execute();
$insee = $ciblage->calculRedevanceInsee();
$session->setNb('total', $total);