24 lines
536 B
PHP
Executable File
24 lines
536 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tablocalite.php';
|
|
|
|
class ControleurAjaxfiltrevilleparpays extends Controleur {
|
|
private $local;
|
|
|
|
public function __construct() {
|
|
$this->local = new Tablocalite();
|
|
}
|
|
|
|
public function index() {
|
|
$codePays = $this->requete->getParametreFormulaire("codePays");
|
|
$tabville = $this->local->getvillelocalite($codePays);
|
|
|
|
$this->genererVueAjax(array(
|
|
'ville' => $tabville
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|