Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SCHULER_VISENTINI_KBIDA_TARDIEU_BDD_Applications_S4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SCHULER Killian
SCHULER_VISENTINI_KBIDA_TARDIEU_BDD_Applications_S4
Commits
374c33f7
Commit
374c33f7
authored
Mar 04, 2020
by
Loïc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppression de problèmes et de redondances dans l'index + Début de la vue de l'accueil
parent
d86d35c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
29 deletions
+32
-29
tp1/composer.lock
tp1/composer.lock
+5
-5
tp1/index.php
tp1/index.php
+2
-24
tp1/src/vue/HomeVue.php
tp1/src/vue/HomeVue.php
+25
-0
No files found.
tp1/composer.lock
View file @
374c33f7
...
...
@@ -541,16 +541,16 @@
},
{
"name": "symfony/translation",
"version": "v4.4.
4
",
"version": "v4.4.
5
",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "
f5d2ac46930238b30a9c2f1b17c905f3697d808c
"
"reference": "
0a19a77fba20818a969ef03fdaf1602de0546353
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/
f5d2ac46930238b30a9c2f1b17c905f3697d808c
",
"reference": "
f5d2ac46930238b30a9c2f1b17c905f3697d808c
",
"url": "https://api.github.com/repos/symfony/translation/zipball/
0a19a77fba20818a969ef03fdaf1602de0546353
",
"reference": "
0a19a77fba20818a969ef03fdaf1602de0546353
",
"shasum": ""
},
"require": {
...
...
@@ -613,7 +613,7 @@
],
"description": "Symfony Translation Component",
"homepage": "https://symfony.com",
"time": "2020-0
1-15T13:29:06
+00:00"
"time": "2020-0
2-04T09:32:40
+00:00"
},
{
"name": "symfony/translation-contracts",
...
...
tp1/index.php
View file @
374c33f7
<?php
require_once
'..
/vendor/autoload.php'
;
require_once
__DIR__
.
'
/vendor/autoload.php'
;
use
bdd\controleur\ControleurRequete
;
use
Illuminate\Database\Capsule\Manager
as
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
$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'
=>
''
]);
$ini_file
=
parse_ini_file
(
'conf/conf.ini'
);
$db
->
setAsGlobal
();
$db
->
bootEloquent
();
...
...
tp1/src/vue/HomeVue.php
0 → 100644
View file @
374c33f7
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment