Import initial du projet Production
This commit is contained in:
27
Controleur/ControleurAccepterderogations.php
Normal file
27
Controleur/ControleurAccepterderogations.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Derogation.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAccepterderogations extends Controleur {
|
||||
private $menuvue;
|
||||
private $derogation;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Accepterderogations');
|
||||
|
||||
$this->derogation = new Derogation();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idDemandederogation = $this->requete->getParametre("id");
|
||||
|
||||
$derogation = $this->derogation->getDerogationId($idDemandederogation);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Accepterderogations');
|
||||
|
||||
$this->genererVue(array('derogation' => $derogation,
|
||||
'chemin' => $chemin));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user