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

35 lines
846 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Police.php';
class ControleurPagetmpolicegarantie extends Controleur
{
private $menuvue;
private $police;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Pagetmpolicegarantie');
$this->police = new Police();
}
public function index()
{
$polices = $this->police->getListePoliceTarifAutre();
$tmpolice = $this->police->getTmpolicegarantie();
$garanties = $this->police->getgarantie();
$chemin = $this->menuvue->getChemin('Pagetmpolicegarantie');
$this->genererVue(array(
'polices' => $polices,
'tmpolice' => $tmpolice,
'garanties' => $garanties ,'chemin' => $chemin
));
}
}