Merge pull request #10 from ThomasRubini/recipe_img_url

This commit is contained in:
Thomas Rubini 2023-01-17 09:54:38 +01:00 committed by GitHub
commit 52407b306d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ final class RecipeModel
$A_recipe = self::getRecipeByID($I_id);
if ($A_recipe === null)return null;
$A_recipe["IMAGE_URL"] = "/static/img/recettes/".$A_recipe["ID"].".jpg";
$O_ingredientModel = new IngredientModel();
$A_recipe["INGREDIENTS"] = $O_ingredientModel->searchByRecipe($A_recipe["ID"]);

View File

@ -1,6 +1,6 @@
<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">
<header>

View File

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 298 KiB