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()); ?>