Import initial du projet Production
This commit is contained in:
23
Controleur/ControleurAjaxajouterpraticien.php
Normal file
23
Controleur/ControleurAjaxajouterpraticien.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Specialite.php';
|
||||
require_once 'Modele/Sexe.php';
|
||||
|
||||
class ControleurAjaxajouterpraticien extends Controleur
|
||||
{
|
||||
private $specialite;
|
||||
private $sexe;
|
||||
|
||||
public function __construct() {
|
||||
$this->specialite = new Specialite();
|
||||
$this->sexe = (new Sexe())->getListe();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$specialite = $this->specialite->getListe();
|
||||
$metier = $this->specialite->getListeMetier();
|
||||
|
||||
$this->genererVueAjax(array('specialite' => $specialite, 'sexe' => $this->sexe, 'metier' => $metier));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user