24 lines
478 B
PHP
24 lines
478 B
PHP
<?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()
|
|
]);
|
|
}
|
|
|
|
} |