Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationsBD_CHEVALIER_TONDON_KELBERT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KELBERT Paul
ApplicationsBD_CHEVALIER_TONDON_KELBERT
Commits
6621c7cd
Commit
6621c7cd
authored
5 years ago
by
Tondon César
Browse files
Options
Downloads
Plain Diff
merge
parents
7e5951e8
e2c79107
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Seance5-6/seance/src/controller/IndexController.php
+6
-1
6 additions, 1 deletion
Seance5-6/seance/src/controller/IndexController.php
Seance5-6/seance/src/view/VuePartie2.php
+2
-3
2 additions, 3 deletions
Seance5-6/seance/src/view/VuePartie2.php
with
8 additions
and
4 deletions
Seance5-6/seance/src/controller/IndexController.php
+
6
−
1
View file @
6621c7cd
...
...
@@ -33,8 +33,8 @@ class IndexController
$game = Game::select('id','name','alias','deck')->where('id','<=','200')->get();
// $game = Game::where('id','=',1)->get();
// $json = json_encode($game,JSON_FORCE_OBJECT);
$json = '{ "games" : [ ';
foreach($game as $key => $value) {
<<<<<<< HEAD
$json = $json . json_encode($value) . ',';
/*$json = $json . '{
"id": ' . $value->id . ',
...
...
@@ -53,6 +53,11 @@ class IndexController
}
}
$json = $json . ']}';
=======
$value->description = "...";
}
$json = json_encode($game);
>>>>>>> e2c791070c5330916f63fb55c2b639a71a327bcb
$cq2 = new VuePartie2($json);
$cq2->render();*/
}
...
...
This diff is collapsed.
Click to expand it.
Seance5-6/seance/src/view/VuePartie2.php
+
2
−
3
View file @
6621c7cd
...
...
@@ -21,12 +21,11 @@ class VuePartie2
<
link
rel
=
"stylesheet"
href
=
"css/main.css"
>
<
title
>
photobox
</
title
>
<
title
>
AppliBD
</
title
>
</
head
>
<
body
>
<
h1
>
Titre
</
h1
>
<
p
>
$json
</
p
>
$json
</
body
>
END
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment