_laConnexion = new Connexion(); } function readAllSecteur() { $stmt = $this->_laConnexion->dbh()->prepare("SELECT * FROM adresse"); $valid = $stmt->execute(); if (!$valid) { $this->_laConnexion->afficherErreurSQL("Erreur recherche bucherons"); } // Parcours du jeu d'enregistrement //Retourne dans un array $tabSecteur = array("lesSecteurs" => $stmt->fetchAll(PDO::FETCH_ASSOC)); return $tabSecteur; } }