27 lines
567 B
PHP
Executable File
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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|