From ff6ac2eb4976f4a6a50122c7199ad99dfc6fcb6d Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Tue, 24 Jan 2023 20:03:23 +0100 Subject: [PATCH] add action recipe/new --- Controllers/RecipeController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Controllers/RecipeController.php b/Controllers/RecipeController.php index 57e62f9..70f0cdc 100644 --- a/Controllers/RecipeController.php +++ b/Controllers/RecipeController.php @@ -47,6 +47,11 @@ final class RecipeController View::show("recipe/edit", $A_returnArray); } + public function newAction(Array $A_urlParams = null, Array $A_postParams = null) + { + View::show("recipe/edit", array()); + } + public function searchAction(Array $A_urlParams = null, Array $A_postParams = null, Array $A_getParams = null) { if (isset($A_getParams["query"])) {