public function defaultAction()
 {
     $bodyConfig = HookNavigation::getConfigValue(HookNavigationConfigValue::FOOTER_BODY_FOLDER_ID);
     $bottomConfig = HookNavigation::getConfigValue(HookNavigationConfigValue::FOOTER_BOTTOM_FOLDER_ID);
     $this->getSession()->getFlashBag()->set('bodyConfig', $bodyConfig);
     $this->getSession()->getFlashBag()->set('bottomConfig', $bottomConfig);
     return $this->render('hooknavigation-configuration');
 }
예제 #2
0
 public function onMainFooterBottom(HookRenderEvent $event)
 {
     $bottomConfig = HookNavigation::getConfigValue(HookNavigationConfigValue::FOOTER_BOTTOM_FOLDER_ID);
     $content = $this->render('main-footer-bottom.html', ['bottomFolderId' => $bottomConfig]);
     $event->add($content);
 }