menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Ficheclient"); $this->client = new Client(); $this->police = new Police(); $this->tarif = new Tarifsactes(); $this->modepaiement = (new Pmodepaiement())->getListe(); $_SESSION['modeDevis'] = "0"; } public function index() { $id = $_SESSION['idClientAjax']; $this->client->getContexteClientId($id); $client = $this->client->getClientId($id); $polices = $this->police->getPolicesId($id); $chemin = $this->menuvue->getChemin('Ficheclient'); $this->genererVue(array('client' => $client, 'polices' => $polices, 'chemin' => $chemin, 'modepaiement' => $this->modepaiement)); } public function supprimer() { $id = $_SESSION['idClientAjax']; if($this->client->supprimer($id)) { $this->rediriger("Listeclients"); } else { $this->rediriger("Ficheclient"); } } }