From 6a91c2a9be3946cee7cbd8c49008f0bbf8e955e6 Mon Sep 17 00:00:00 2001
From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com>
Date: Fri, 20 Jan 2023 09:20:57 +0100
Subject: [PATCH] change keys passed to the view
---
Controllers/DefaultController.php | 12 ++++++------
Views/common/recipe.php | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Controllers/DefaultController.php b/Controllers/DefaultController.php
index 0590473..04045d8 100644
--- a/Controllers/DefaultController.php
+++ b/Controllers/DefaultController.php
@@ -7,21 +7,21 @@ final class DefaultController
{
$array_recipes = array(
array(
- "LINK" => "/recipe/view/1",
+ "RECIPE_LINK" => "/recipe/view/1",
"NAME" => "Pâte à crêpe",
- "IMG" => "/static/img/recipes/1.jpg",
+ "IMG_LINK" => "/static/img/recipes/1.jpg",
"NOTE" => "4.5"
),
array(
- "LINK" => "/recipe/view/1",
+ "RECIPE_LINK" => "/recipe/view/1",
"NAME" => "Pâte à crêpe",
- "IMG" => "/static/img/recipes/1.jpg",
+ "IMG_LINK" => "/static/img/recipes/1.jpg",
"NOTE" => "4.5"
),
array(
- "LINK" => "/recipe/view/1",
+ "RECIPE_LINK" => "/recipe/view/1",
"NAME" => "Pâte à crêpe",
- "IMG" => "/static/img/recipes/1.jpg",
+ "IMG_LINK" => "/static/img/recipes/1.jpg",
"NOTE" => "4.5"
),
);
diff --git a/Views/common/recipe.php b/Views/common/recipe.php
index 1cabff5..7b46cc1 100644
--- a/Views/common/recipe.php
+++ b/Views/common/recipe.php
@@ -1,5 +1,5 @@
-">
-
" alt="= $A_view["NAME"]?>">
+">
+
" alt="= $A_view["NAME"]?>">
= $A_view["NAME"]?>
= $A_view["NOTE"]?>