garant/Controleur/ControleurAjaxfiltrecollegepolice.php
2025-12-05 10:57:03 +00:00

23 lines
491 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Police.php';
class ControleurAjaxfiltrecollegepolice extends Controleur
{
private $police;
public function __construct()
{
$this->police = new Police();
}
public function index()
{
$idPolice = $this->requete->getParametreFormulaire("idPolice");
$colleges = $this->police->getListeCollegePolice($idPolice);
$this->genererVueAjax(array('colleges' => $colleges));
}
}