Initial commit for newdesigngestionnaire project
This commit is contained in:
32
Controleur/ControleurContrat.php
Executable file
32
Controleur/ControleurContrat.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
require_once 'Modele/Etatcp.php';
|
||||
require_once 'Modele/Avenant.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
|
||||
class ControleurContrat extends Controleur
|
||||
{
|
||||
private $menuvue;
|
||||
private $etat;
|
||||
private $avenant;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Contrat");
|
||||
$this->avenant = (new Avenant())->getListeEnCoursrp($_SESSION['idPolice_C']);
|
||||
|
||||
$this->etat = new Etatcp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
// $chemin = $this->menuvue->getChemin('Contrat');
|
||||
// $allAderents = (new Adherent())->getAllAderents();
|
||||
$etats = $this->etat->getEtatcp() ;
|
||||
// $this->genererVue(array('avenant' => $this->avenant,'adherents'=>$allAderents,'etats' => $etats, 'chemin' => $chemin));
|
||||
$this->genererVue(array('avenant' => $this->avenant,'etats' => $etats));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user