Fixed error and Implemented BuyTickets views Model and Controller. Added Button to Events and Added Styles
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user