societeuser = new Societeusercentral(); } public function index() { $codeUtilisateur = ""; $societeExiste = false; $codeSociete= $this->requete->getParametreFormulaire("codeSociete"); $societeExiste = $this->societeuser->existeligneconnexion($codeSociete); $actif = "0"; if ($societeExiste) { if (isset($_COOKIE['login']["$codeSociete"])) { $codeUtilisateur = $_COOKIE['login']["$codeSociete"]; } $actif = $this->societeuser->estActif($codeSociete); } $this->genererVueAjax ( array ( 'codeUtilisateur' => $codeUtilisateur, 'societeExiste' => $societeExiste, 'actif' => $actif ) ); } public function rechercher() { $codeSociete = $this->requete->getParametreFormulaire("codeSociete"); $bool = $this->societeuser->existeligne($codeSociete); echo $bool ? 'true' : 'false'; } }