change keys passed to the view

This commit is contained in:
Thomas Rubini 2023-01-20 09:20:57 +01:00
parent 5d7c4628c6
commit 6a91c2a9be
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373
2 changed files with 8 additions and 8 deletions

View File

@ -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"
),
);

View File

@ -1,5 +1,5 @@
<a href="<?= $A_view["LINK"]?>">
<img src="<?= $A_view["IMG"] ?>" alt="<?= $A_view["NAME"]?>">
<a href="<?= $A_view["RECIPE_LINK"]?>">
<img src="<?= $A_view["IMG_LINK"] ?>" alt="<?= $A_view["NAME"]?>">
<section>
<h2> <?= $A_view["NAME"]?> </h2>
<p> <?= $A_view["NOTE"]?> </p>