Skip to content
Snippets Groups Projects
Commit de01f32f authored by Muhammad Rifko Favian's avatar Muhammad Rifko Favian
Browse files

feat: delete event backend handling

parent e63361c6
Branches
Tags
No related merge requests found
...@@ -112,6 +112,13 @@ class EventController { ...@@ -112,6 +112,13 @@ class EventController {
header("Location:Views/home/home.php"); header("Location:Views/home/home.php");
ob_end_flush(); ob_end_flush();
} }
elseif ($_POST['eventAction'] === 'deleteEvent') {
unset($_POST['eventAction']);
$eventId = $_POST['eventId'];
$this->deleteEvent($eventId);
header("Location:Views/home/home.php");
ob_end_flush();
}
} else { } else {
// Handle other actions here, if needed // Handle other actions here, if needed
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment