Skip to content
Snippets Groups Projects
Commit 374c33f7 authored by Loïc's avatar Loïc
Browse files

Suppression de problèmes et de redondances dans l'index + Début de la vue de l'accueil

parent d86d35c1
No related branches found
No related tags found
No related merge requests found
...@@ -541,16 +541,16 @@ ...@@ -541,16 +541,16 @@
}, },
{ {
"name": "symfony/translation", "name": "symfony/translation",
"version": "v4.4.4", "version": "v4.4.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation.git", "url": "https://github.com/symfony/translation.git",
"reference": "f5d2ac46930238b30a9c2f1b17c905f3697d808c" "reference": "0a19a77fba20818a969ef03fdaf1602de0546353"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/f5d2ac46930238b30a9c2f1b17c905f3697d808c", "url": "https://api.github.com/repos/symfony/translation/zipball/0a19a77fba20818a969ef03fdaf1602de0546353",
"reference": "f5d2ac46930238b30a9c2f1b17c905f3697d808c", "reference": "0a19a77fba20818a969ef03fdaf1602de0546353",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -613,7 +613,7 @@ ...@@ -613,7 +613,7 @@
], ],
"description": "Symfony Translation Component", "description": "Symfony Translation Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2020-01-15T13:29:06+00:00" "time": "2020-02-04T09:32:40+00:00"
}, },
{ {
"name": "symfony/translation-contracts", "name": "symfony/translation-contracts",
......
<?php <?php
require_once '../vendor/autoload.php'; require_once __DIR__ . '/vendor/autoload.php';
use bdd\controleur\ControleurRequete; use bdd\controleur\ControleurRequete;
use Illuminate\Database\Capsule\Manager as DB; use Illuminate\Database\Capsule\Manager as DB;
$db = new DB(); $db = new DB();
//SI CA NE FONCTIONNE PAS, ENLEVER LES COMMENTAIRES : CES INFOS SONT DEJA DANS LE CONF.INI
//LA LIGNE DU PASSWORD NE DEVRAIT PAS ETRE NECESSAIRE CAR NOUS NOUS CONNECTONS AVEC ROOT, SINON, LA METTRE QUAND MEME
/*$db->addConnection( [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'gamepedia',
'username' => 'user',
//'password' => 'password',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => ''
] );*/
// ajout des informations pour se connecter à la base de données // ajout des informations pour se connecter à la base de données
$ini_file = parse_ini_file('../conf/conf.ini'); $ini_file = parse_ini_file('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->setAsGlobal(); $db->setAsGlobal();
$db->bootEloquent(); $db->bootEloquent();
......
<?php
namespace src\vue;
class HomeVue
{
public function renderHome{
echo<<<END
<!DOCTYPE html>
<html lang=" "fr">
<head>
<meta charset="utf-8">
<title>HOME</title>
</head>
<body>
<a href="#" title="retour à la page d'accueil"><h1>Accueil</h1></a>
</body>
</html>
END;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment