executerRequete($sql, array($codeTypeBon)); return $resultat->fetch(PDO::FETCH_ASSOC); } public function getbonpec($idBon) { $sql = 'call sp_r_get_bonpec(?)'; $bonpec = $this->executerRequete($sql, array($idBon)); $ligne = $bonpec->fetch(PDO::FETCH_ASSOC); return $ligne; } }