police = new Police(); $this->beneficiaire = new Beneficiaire(); $this->avenant = new Avenant(); } public function index() { $idPolice = $_SESSION['idPolice_C']; $police = $this->police->getPoliceId($idPolice); $idAvenant = $this->requete->getParametreFormulaire("idAvenant"); $_SESSION['idAvenantImport'] = $idAvenant; $avenant = $this->avenant->getunavenant($idAvenant); $this->genererVueAjax ( array('police'=>$police, 'avenant'=>$avenant, 'idAvenant'=>$idAvenant )); } public function majdateeffet() { $dateEffet = $this->requete->getParametreDate("dateEffet"); $this->beneficiaire->majdateeffetFichierImport($dateEffet); } }