Gutscheinverwaltung für Admins fertig gemacht:

Übersicht, Erstellen & Bearbeiten im einheitlichen Card-Design
Routing-Fehler nach Aktionen gefixt (Redirects & Erfolgsseiten) Gutscheine-Link in Navigation nur für Admins
This commit is contained in:
Karsten Tlotzek
2025-07-11 18:06:27 +02:00
parent 6cb75b0c1d
commit b89714a6e7
9 changed files with 118 additions and 28 deletions

View File

@@ -47,7 +47,6 @@ class NewsController {
header('Location: index.php?controller=News&do=showNews');
exit;
}
// Leere Felder für das Formular
$this->view->setVars([
'errors' => [],
'validData' => []
@@ -116,7 +115,6 @@ class NewsController {
return;
}
}
// Fehlerfall: zurück zur Übersicht
header('Location: index.php?controller=News&do=showNews');
exit;
}