a
This commit is contained in:
28
Controleur/ControleurListeavenant.php
Normal file
28
Controleur/ControleurListeavenant.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Avenant.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurListeavenant extends Controleur {
|
||||
private $police;
|
||||
private $avenant;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Listeavenant");
|
||||
|
||||
$this->police = new Police();
|
||||
$this->avenant = new Avenant();
|
||||
}
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
$this->police->getContextePoliceId($idPolice);
|
||||
$police = $this->police->getPoliceId($idPolice);
|
||||
|
||||
$avenants = $this->avenant->getAvenant($idPolice);
|
||||
|
||||
$this->genererVue(array('police' => $police, 'avenants' => $avenants));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user