Préparation pour la sauvegarde
This commit is contained in:
parent
77665320d7
commit
5e87ef6e60
@ -48,18 +48,25 @@ class ComptageController extends Zend_Controller_Action
|
|||||||
|
|
||||||
public function saveAction()
|
public function saveAction()
|
||||||
{
|
{
|
||||||
|
$this->_helper->layout()->disableLayout();
|
||||||
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
|
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$ref = $request->getParam('ref');
|
$ref = $request->getParam('ref');
|
||||||
|
|
||||||
//Session
|
if (!empty($ref)) {
|
||||||
require_once 'Scores/SessionCiblage.php';
|
echo 'Référence non définie !';
|
||||||
$session = new SessionCiblage();
|
} else {
|
||||||
|
//Session
|
||||||
$criteres = $session->getCriteres();
|
require_once 'Scores/SessionCiblage.php';
|
||||||
|
$session = new SessionCiblage();
|
||||||
$resultat = '';
|
$criteres = $session->getCriteres();
|
||||||
$nbInsee = '';
|
$resultat = $session->getNb('total');
|
||||||
|
$nbInsee = $session->getNb('insee');
|
||||||
|
|
||||||
|
//Enregistrement dans la base de donnée
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user