Standardmethoden für Standort und News.Events erweitert
This commit is contained in:
24
Controller/StandortController.php
Normal file
24
Controller/StandortController.php
Normal 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()
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user