26 lines
708 B
PHP
Executable File
26 lines
708 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();
|
|
|
|
$this->genererVue(array('produit' => $this->produit, 'garant' => $this->garant));
|
|
}
|
|
} |