prestation/Controleur/ControleurAjaxchargerlistemedicaments.php
2025-12-01 18:54:33 +00:00

51 lines
597 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Prescription.php';
class ControleurAjaxchargerlistemedicaments extends Controleur {
private $prescription;
public function __construct() {
$this->prescription = new Prescription();
}
public function index() {
$libelle = $this->requete->getParametreFormulaire("libelle");
$medicaments = $this->prescription->getmedicamentfiltre($libelle);
$this->genererVueAjax(array('medicaments' => $medicaments));
}
}