Commit 454246ff authored by Loïc's avatar Loïc

Opti de la conf

parent 631c5f51
......@@ -14,17 +14,7 @@ use \Slim\Slim;
$db = new DB();
// ajout des informations pour se connecter à la base de données
$ini_file = parse_ini_file('src/conf/conf.ini');
$db->addConnection([
'driver' => $ini_file['driver'],
'host' => $ini_file['host'],
'database' => $ini_file['database'],
'username' => $ini_file['username'],
'password' => $ini_file['password'],
'charset' => $ini_file['charset'],
'collation' => $ini_file['charset'] . '_unicode_ci',
'prefix' => ''
]);
$db->addConnection(parse_ini_file('conf/conf.ini'));
// demarage de la basse de donnée
$db->setAsGlobal();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment