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(); } ?> Retour " method="post"> Ajoutez 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; $numberOfInstructions = 1; } ?> +