test
This commit is contained in:
20
Controleur/ControleurAjaxcontextpolice.php
Normal file
20
Controleur/ControleurAjaxcontextpolice.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
|
||||
class ControleurAjaxcontextpolice extends Controleur {
|
||||
private $police;
|
||||
|
||||
public function __construct() {
|
||||
$this->police = new Police();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$idPolice = $this->requete->getParametreFormulaire("idPolice");
|
||||
$this->police->getContextePoliceId($idPolice);
|
||||
$police = $this->police->getPoliceId($idPolice);
|
||||
|
||||
$_SESSION['idPoliceAjax'] = $idPolice;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user