32 lines
971 B
PHP
Executable File
32 lines
971 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Trancheage.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Gestionconfiee.php';
|
|
|
|
class ControleurTrancheage extends Controleur {
|
|
private $menuvue;
|
|
private $trancheage;
|
|
private $garant;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Trancheage');
|
|
|
|
$this->trancheage = new Trancheage();
|
|
$this->garant = (new Gestionconfiee())->getListeGarantDansProduit();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$chemin = $this->menuvue->getChemin('Trancheage');
|
|
|
|
$entetestrancheage = $this->trancheage->geterentetestrancheage('');
|
|
$garant = $this->trancheage->getListeGarant();
|
|
|
|
$_SESSION['successTrancheAge'] = '1';
|
|
$_SESSION['messageTrancheAge'] = '';
|
|
|
|
$this->genererVue(array('entetestrancheage' => $entetestrancheage, 'garant' => $garant, 'chemin' => $chemin));
|
|
}
|
|
} |