27 lines
622 B
PHP
Executable File
27 lines
622 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
|
|
require_once 'Modele/Produit.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurModifierproduit extends Controleur {
|
|
private $produit;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Modifierproduit');
|
|
|
|
$this->produit = new Produit();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idProduit = $this->requete->getParametreFormulaire("id");
|
|
|
|
$produit = $this->produit->getunproduit($idProduit);
|
|
|
|
$this->genererVue(array('produit' => $produit));
|
|
}
|
|
|
|
|
|
} |