testing
This commit is contained in:
@@ -20,8 +20,10 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
$author = "max.mustermann"; // TODO: später aus Session den angemeldeten Nutzer beziehen.
|
||||
$tags = $_POST["tags"];
|
||||
|
||||
$articleManager->addArticle($title, $content, $category, $author, $tags);
|
||||
|
||||
//$articleManager->addArticle($title, $content, $category, $author, $tags);
|
||||
foreach ($articleManager->getAllArticles() as $article) {
|
||||
echo htmlspecialchars($article['title'])."<br>";
|
||||
}
|
||||
// Weiterleitung zur Homepage
|
||||
header("location: ../../index.php");
|
||||
exit();
|
||||
|
||||
Reference in New Issue
Block a user