22 lines
526 B
PHP
Executable File
22 lines
526 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Produit.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurProduits extends Controleur {
|
|
private $produit;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Produits");
|
|
|
|
$this->produit = new Produit();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$produits = $this->produit->getProduits();
|
|
|
|
$this->genererVue(array('produits' => $produits));
|
|
}
|
|
} |