production/Controleur/ControleurRemplaceradherent.php
2025-12-02 11:29:44 +00:00

37 lines
858 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurRemplaceradherent extends Controleur {
private $menuvue;
private $adherent;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Remplaceradherent');
$this->adherent = new Adherent();
}
public function index()
{
$idPolice = $_SESSION['idPolice_C'];
$idAdherent = $_SESSION['idAdherent_C'];
// $adherent = $this->adherent->getAdherentIdConso($idAdherent);
$adherent = $this->adherent->getAdherentIdRempl($idAdherent);
$chemin = $this->menuvue->getChemin('Remplaceradherent');
$this->genererVue(array('adherent' => $adherent, 'chemin' => $chemin));
}
}