diff --git a/Models/RecipeModel.php b/Models/RecipeModel.php index 9f79632..2e0b272 100644 --- a/Models/RecipeModel.php +++ b/Models/RecipeModel.php @@ -65,7 +65,10 @@ final class RecipeModel ) -- get a row per occurrence and sort by occurrences number - select RECIPE.ID, RECIPE.NAME + select RECIPE.ID, RECIPE.NAME, + CONCAT('/recipe/view/', RECIPE.ID) AS RECIPE_LINK, + CONCAT('/static/img/recipes/', RECIPE.ID) AS IMG_LINK, + 1 AS NOTE from CTE JOIN RECIPE WHERE CTE.NAME is not null