From ac562d24d8a12393624b53c156b0cc8a9a04e355 Mon Sep 17 00:00:00 2001 From: Jeremy DUCOURTHIAL Date: Wed, 7 Dec 2022 09:10:18 +0100 Subject: [PATCH] test gatewaySource --- gatewaySources.php | 4 ++-- index.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gatewaySources.php b/gatewaySources.php index c4bebb8..6e0e641 100644 --- a/gatewaySources.php +++ b/gatewaySources.php @@ -24,13 +24,13 @@ class GatewaySources ); } - public function getSource($username,$password) + public function getSource() { $query = "SELECT * FROM sources"; $this->con->executeQuery($query, array()); $results=$this->con->getResults(); Foreach ($results as $source){ - $listeSources[] = new News($source["link"]); + $listeSources[] = new sources($source["link"]); } return $listeSources; } diff --git a/index.php b/index.php index bb76958..44280c0 100644 --- a/index.php +++ b/index.php @@ -2,9 +2,13 @@ require_once("connection.php"); require_once("ControllerAdmin.php"); require_once("gatewayAdmins.php"); + require_once("gatewaySources.php"); //chargement config require_once("config.php"); $controller = new ControllerAdmin(); + $c = new GatewaySources(); + + echo($c->getSource()); ?>