change keys passed to the view
This commit is contained in:
parent
5d7c4628c6
commit
6a91c2a9be
@ -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"
|
||||
),
|
||||
);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user