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_recipes = array(
array( array(
"LINK" => "/recipe/view/1", "RECIPE_LINK" => "/recipe/view/1",
"NAME" => "Pâte à crêpe", "NAME" => "Pâte à crêpe",
"IMG" => "/static/img/recipes/1.jpg", "IMG_LINK" => "/static/img/recipes/1.jpg",
"NOTE" => "4.5" "NOTE" => "4.5"
), ),
array( array(
"LINK" => "/recipe/view/1", "RECIPE_LINK" => "/recipe/view/1",
"NAME" => "Pâte à crêpe", "NAME" => "Pâte à crêpe",
"IMG" => "/static/img/recipes/1.jpg", "IMG_LINK" => "/static/img/recipes/1.jpg",
"NOTE" => "4.5" "NOTE" => "4.5"
), ),
array( array(
"LINK" => "/recipe/view/1", "RECIPE_LINK" => "/recipe/view/1",
"NAME" => "Pâte à crêpe", "NAME" => "Pâte à crêpe",
"IMG" => "/static/img/recipes/1.jpg", "IMG_LINK" => "/static/img/recipes/1.jpg",
"NOTE" => "4.5" "NOTE" => "4.5"
), ),
); );

View File

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