Standardmethoden für Standort und News.Events erweitert
This commit is contained in:
@@ -14,6 +14,21 @@ class EventController {
|
||||
$this->view = $view;
|
||||
}
|
||||
|
||||
public function showEvents() {
|
||||
$events = $this->eventModel->getEvents();
|
||||
$this->view->setVars([
|
||||
"events" => $events
|
||||
]);
|
||||
}
|
||||
|
||||
public function getEvent() {
|
||||
$ausstellungid = $_GET['ausstellungid'];
|
||||
$event = $this->eventModel->getEvent($ausstellungid);
|
||||
$this->view->setVars([
|
||||
"event" => $event
|
||||
]);
|
||||
}
|
||||
|
||||
public function updateEvent() {
|
||||
$event = array(
|
||||
"ausstellungid" => $_POST['ausstellungid'],
|
||||
|
Reference in New Issue
Block a user