Regioagenda in sidebar

This commit is contained in:
mischa.spelt committed 2020-02-01 01:07:21 +01:00
1 parent 27dbd9bb0c
commit 5e7e16e25e
8 files changed
+39

No files matched your search

@@ -58,6 +58,9 @@ class Controller extends BaseController
View::composer('widgets.laatstepodcasts', function($view) {
$view->with('data', $this->getDataFromFileAndConvert('laatste_podcasts.json', ['podcasts'], '\Model\Podcast'));
});
View::composer('widgets.regioagenda', function($view) {
$view->with('data', $this->getDataFromFileAndConvert('regioagenda.json', [], '\Model\CalendarEvent'));
});
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))