fix few features in the architecture, recipe is now in common

This commit is contained in:
Nicolas 2023-01-18 11:33:28 +01:00
parent a6472ce6e8
commit 26096c3028
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<a href="/recipe/view/1">
<img scr="<?= $A_view["img"] ?>">
<a href="/recipe/view/<?= $A_view["id"]?>">
<img src="<?= $A_view["img"] ?>" alt="<?= $A_view["nom"]?>">
<section>
<h2> <?= $A_view["nom"]?> </h2>
<p> <?= $A_view["note"]?> </p>

View File

@ -25,7 +25,7 @@ $array_recipes = array(
<section>
<?php
foreach ($array_recipes as $recipe){
View::show("home/recipe", $recipe);
View::show("common/recipe", $recipe);
}
?>
</section>