menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Ficheprospect"); $this->client = new Client_d(); $this->police = new police_d(); $_SESSION['modeDevis'] = "1"; } public function index() { $id = $_SESSION['idClient_d_Ajax']; $this->client->getContexteClientId($id); $client = $this->client->getClientId($id); $polices = $this->police->getPolicesId($id); $_SESSION['numeroOptionTarif'] = "1"; $this->genererVue(array('client' => $client, 'polices' => $polices)); } public function supprimer() { $id = $_SESSION['idClient_d_Ajax']; if($this->client->supprimer($id)) { $this->rediriger("Listeprospects"); } else { $this->rediriger("Ficheprospect"); } } }