newdesigngestionnaire/Controleur/ControleurGctypegarant.php

28 lines
660 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Gestionconfiee.php';
class ControleurGctypegarant extends Controleur {
private $menuvue;
private $type;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Gctypegarant");
$this->type = new Gestionconfiee();
}
public function index() {
$typesgarant = $this->type->getGcTypeGarant();
$chemin = $this->menuvue->getChemin('Gctypegarant');
$this->genererVue(array(
'typesgarant' => $typesgarant,
'chemin' => $chemin
));
}
}