S_NAME; $I_time = $O_recipe->I_TIME; $S_descr = $O_recipe->S_DESCR; $S_recipe = $O_recipe->S_RECIPE; $S_difficultyName = $O_recipe->getDifficulty()->S_NAME; $A_parts = array(); // TODO $A_ingredients = $O_recipe->getIngredients(); } ?> " method="post"> Entrez l'image de haut de page : Nom de la recette : Description de la recette = $S_descr ?> Informations alimentaires Niveau de difficulé : >=$S_difficulty?> Particularités du plat : > Végan > Sans lactose > Sans gluten Temps de préparation : minutes Ingrédients 0) { $i = 1; foreach($A_ingredients as $O_ingredient) { echo ' Ingrédient : Quantité : '; $i++; } echo ' -'; $numberOfIngredients = $i-1; } else { echo ' Ingrédient : Quantité : -'; $numberOfIngredients = 1; } ?> + Préparation Étape '.$i.' : '; $i++; } $numberOfInstructions = $i-1; echo ' -'; } else { echo ' Étape 1 : -'; $numberOfIngredients = 1; } ?> +