Vacatures en beelden toegevoegd

This commit is contained in:
2021-10-05 20:06:01 +02:00
parent 6408a4e417
commit d1b10e558d
8 changed files with 144 additions and 6 deletions

View File

@@ -81,6 +81,9 @@ class Controller extends BaseController
View::composer('widgets.regioagenda', function($view) {
$view->with('data', $this->getDataFromFileAndConvert('regioagenda.json', [], '\Model\CalendarEvent'));
});
View::composer('widgets.beelden', function($view) {
$view->with('data', $this->getDataFromFileAndConvert('beelden.json', ['items'], '\Model\NewsItem'));
});
View::composer('widgets.menu', function($view) {
$view->with('news', $this->getDataFromFileAndConvert('laatste_nieuws.json', ['news'], '\Model\NewsItem'))
->with('popular', $this->getDataFromFileAndConvert('populair_nieuws.json', [], '\Model\NewsItem', 3))