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

26 lines
625 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Tabpointvente.php';
class ControleurAjaxfiltrelocaliteparville extends Controleur {
private $pv;
public function __construct() {
$this->pv = new Tabpointvente();
}
public function index() {
$codePays = $this->requete->getParametreFormulaire("codePays");
$codeVille = $this->requete->getParametreFormulaire("codeVille");
$tablocalite = $this->pv->getlocalite($codePays,$codeVille);
$this->genererVueAjax(array(
'localite' => $tablocalite
));
}
}