Import initial du projet Production
This commit is contained in:
32
Controleur/ControleurTrancheage.php
Normal file
32
Controleur/ControleurTrancheage.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user