add IMAGE_URL key for recipe
This commit is contained in:
parent
d60d0891de
commit
7c20f6729a
@ -20,6 +20,7 @@ final class RecipeModel
|
|||||||
$A_recipe = self::getRecipeByID($I_id);
|
$A_recipe = self::getRecipeByID($I_id);
|
||||||
if ($A_recipe === null)return null;
|
if ($A_recipe === null)return null;
|
||||||
|
|
||||||
|
$A_recipe["IMAGE_URL"] = "/static/img/recettes/".$A_recipe["ID"].".jpg";
|
||||||
|
|
||||||
$O_ingredientModel = new IngredientModel();
|
$O_ingredientModel = new IngredientModel();
|
||||||
$A_recipe["INGREDIENTS"] = $O_ingredientModel->searchByRecipe($A_recipe["ID"]);
|
$A_recipe["INGREDIENTS"] = $O_ingredientModel->searchByRecipe($A_recipe["ID"]);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<main>
|
<main>
|
||||||
|
|
||||||
<img src="<?= $A_view["imageRecette"] ?>" alt="Image d'illustration de la recette">
|
<img src="<?= $A_view["IMAGE_URL"] ?>" alt="Image d'illustration de la recette">
|
||||||
|
|
||||||
<section class="infosRecette">
|
<section class="infosRecette">
|
||||||
<header>
|
<header>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user