From bff0b9a4a9abb29d7340956d233b52a87f3111eb Mon Sep 17 00:00:00 2001 From: Animation des soirees <nightiies@perso.iiens.net> Date: Sun, 4 Oct 2015 14:51:28 +0200 Subject: [PATCH] use config file --- index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.php b/index.php index cf1ce1c..861af7d 100644 --- a/index.php +++ b/index.php @@ -1,10 +1,9 @@ <?php require 'Slim/Slim.php'; +require 'config.php'; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(); -$bdd = new PDO('mysql:host=mysql.iiens.net;dbname=assoce_nightiies', 'assoce_nightiies', 'CQX2K3BZctUAvUtz', array( - PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)); $app->get( '/', -- GitLab