28 lines
801 B
PHP
Executable File
28 lines
801 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Produit.php';
|
|
require_once 'Modele/Gestionconfiee.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurPrimeproduitlienparente extends Controleur {
|
|
private $menuvue;
|
|
private $produit;
|
|
private $garant;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Primeproduitlienparente');
|
|
|
|
$this->produit = new Produit();
|
|
$this->garant = (new Gestionconfiee())->getListe();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$this->produit = array();
|
|
|
|
$chemin = $this->menuvue->getChemin('Primeproduitlienparente');
|
|
|
|
$this->genererVue(array('produit' => $this->produit, 'garant' => $this->garant, 'chemin' => $chemin));
|
|
}
|
|
} |