production/Controleur/ControleurAjaxfiltrescollegepolice.php
2025-12-02 11:29:44 +00:00

27 lines
567 B
PHP
Executable File

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