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

33 lines
822 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Gestionconfiee.php';
require_once 'Modele/Produit.php';
class ControleurBaremepriseencharge extends Controleur {
private $menuvue;
private $bareme;
private $garant;
private $produit;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Baremepriseencharge");
$this->garant = new Gestionconfiee();
$this->produit = new Produit();
}
public function index()
{
$garant = $this->garant->getListeGarantDansProduit();
//$produits = $this->produit->getProduits();
$produits = array();
$this->genererVue(array(
'garant' => $garant,
'produits' => $produits
));
}
}