Standardmethoden für Standort und News.Events erweitert
This commit is contained in:
1 parent
6e3e3708b2
commit
1964cadd8c
10 files changed
+278
-3
No files matched your search
@@ -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