Standardmethoden für Standort und News.Events erweitert

This commit is contained in:
2025-06-23 11:10:46 +02:00
parent 6e3e3708b2
commit 1964cadd8c
10 changed files with 278 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Blog\Controller;
use Blog\Model\StandortModel;
class StandortController {
protected $view;
protected $standortModel;
public function __construct($view) {
$this->standortModel = new StandortModel();
$this->view = $view;
}
public function showStandorte() {
$this -> standortModel -> getStandorte();
$this->view->setVars([
"standorte" => $this->standortModel->getStandorte()
]);
}
}