Initial commit for newdesigngestionnaire project
This commit is contained in:
25
Controleur/ControleurRefuserderogation.php
Executable file
25
Controleur/ControleurRefuserderogation.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Derogation.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurRefuserderogation extends Controleur {
|
||||
private $menuvue;
|
||||
private $derogation;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Refuserderogation');
|
||||
|
||||
$this->derogation = new Derogation();
|
||||
}
|
||||
public function index() {
|
||||
$idDemandederogation = $this->requete->getParametre("id");
|
||||
|
||||
$derogation = $this->derogation->getDerogationId($idDemandederogation);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Refuserderogation');
|
||||
|
||||
$this->genererVue(array('derogation' => $derogation, 'chemin' => $chemin));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user