22 lines
516 B
PHP
Executable File
22 lines
516 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Affection.php';
|
|
|
|
|
|
class ControleurAjaxaffectionspossibles extends Controleur {
|
|
private $affection;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->affection = new Affection();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codeTypeAffection = $this->requete->getParametreFormulaire("codeTypeAffection");
|
|
|
|
$affections = $this->affection->getListe($codeTypeAffection) ;
|
|
|
|
$this->genererVueAjax(array('affections' => $affections));
|
|
}
|
|
} |