prestation/Controleur/ControleurAjaxplafondadherent.php
2025-12-05 10:42:46 +00:00

24 lines
674 B
PHP
Executable File

<?php
require_once 'Framework/Controleurrequete.php'; // OK
require_once 'Modele/Garantieadherent.php';
class ControleurAjaxplafondadherent extends Controleurrequete
{
private $garantieadherent;
public function __construct()
{
$this->garantieadherent = new Garantieadherent();
}
public function index()
{
$idAdherent = $_SESSION['idAdherent_C'];
$idEntetecontrat = $this->requete->getParametreFormulaire("idEntetecontrat");
$garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat);
$this->genererVueAjax(array('garantieadherents' => $garantieadherents));
}
}