assure/Controleur/ControleurAjaxconsosadherent.php
2025-12-01 19:07:16 +00:00

25 lines
642 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
class ControleurAjaxconsosadherent extends Controleur {
private $adherent;
public function __construct() {
$this->adherent = new Adherent();
}
public function index() {
$idAdherent = $this->requete->getParametreFormulaire("idAdherent");
$prestations = $this->adherent->getConsosAdherent($idAdherent);
$total_prestation = $this->adherent->getConsosTotalAdherent($idAdherent);
$this->genererVueAjax(array('prestations' => $prestations, 'total_prestation' => $total_prestation));
}
}