Import initial du projet Production
This commit is contained in:
30
Controleur/ControleurAfficherbons.php
Normal file
30
Controleur/ControleurAfficherbons.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Typebon.php';
|
||||
require_once 'Modele/Prestataire.php';
|
||||
require_once 'Modele/Etatbon.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAfficherbons extends Controleur {
|
||||
private $menuvue;
|
||||
private $prestataire;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Afficherbons');
|
||||
|
||||
$this->typebon = (new Typebon())->getListe();
|
||||
$this->etatbon = (new Etatbon())->getListe();
|
||||
$this->prestataire = new Prestataire();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Afficherbons');
|
||||
|
||||
$this->genererVue(array('prestataire_courant' => $prestataire_courant, 'typebon' => $this->typebon, 'etatbon' => $this->etatbon,
|
||||
'chemin' => $chemin));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user