From 5c613a82c0165762382739a84b227c6aafebb30e Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Fri, 29 May 2026 13:15:05 +0200 Subject: [PATCH] debugging --- php/controller/createArticle-controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/controller/createArticle-controller.php b/php/controller/createArticle-controller.php index 57f4281..ef077eb 100644 --- a/php/controller/createArticle-controller.php +++ b/php/controller/createArticle-controller.php @@ -18,13 +18,14 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { try { $articleManager = ArticleManager::getInstance(); //$articleManager->addArticle($title, $content, $author, $category, $tags); + echo "Test"; $articleManager->addArticle("Test", "Testkontent", "informatik", "max.mustermann", "Apfel, Birne"); } catch (Exception $e){ $_SESSION["message"] = "internal_error"; } $_SESSION["message"] = "new_article"; // Weiterleitung zur Homepage - header("location: ../../index.php"); + //header("location: ../../index.php"); exit(); }