Fixed error and Implemented BuyTickets views Model and Controller. Added Button to Events and Added Styles

This commit is contained in:
2025-07-11 22:43:29 +02:00
parent c306a59fec
commit a881b3933d
9 changed files with 342 additions and 33 deletions

View File

@@ -106,8 +106,12 @@ class EventController {
$id = $_GET['event_id'] ?? null;
if ($id) {
$this->model->deleteEvent($id);
$this->view->setVars(['id' => $id]);
$this->view->setDoMethodName('deleteEvent');
} else {
header('Location: index.php?controller=Event&do=showEvents');
exit;
}
$this->view->setDoMethodName('deleteEvent');
}
public function showUpdateEvent() {