Exemplo n.º 1
0
 public function routeShutdown(Zend_Controller_Request_Abstract $request)
 {
     $navContainer = null;
     $viewRenderer = Zend_Controller_Action_HelperBroker::getExistingHelper('ViewRenderer');
     $viewRenderer->initView();
     $view = $viewRenderer->view;
     $module = $request->getModuleName();
     if ($module == "admin") {
         $navContainerConfig = new Zend_Config_Xml(APPLICATION_PATH . '/modules/admin/navigation.xml', 'nav');
         $navContainer = new Zend_Navigation($navContainerConfig);
         // Load the xml navigation menu
         // check if the database configuration has been set
         if (Shineisp_Main::isReady()) {
             // Adding the configuration menu items
             $configuration = SettingsGroups::getlist();
             $submenu = $navContainer->findOneByLabel('Configuration');
             foreach ($configuration as $id => $item) {
                 $pages[] = array('label' => $item, 'uri' => '/admin/settings/index/groupid/' . $id, 'resource' => 'admin:settings');
             }
             $submenu->addPages($pages);
         }
         // Attach the Zend ACL to the Navigation menu
         $auth = Zend_Auth::getInstance();
         if ($auth) {
             $acl = $auth->getStorage()->read();
             if (is_object($acl)) {
                 Zend_View_Helper_Navigation_HelperAbstract::setDefaultAcl($acl);
                 Zend_View_Helper_Navigation_HelperAbstract::setDefaultRole("administrator");
             }
         }
     } elseif ($module == "default") {
         $navContainerConfig = new Zend_Config_Xml(APPLICATION_PATH . '/modules/default/navigation.xml', 'nav');
         $navContainer = new Zend_Navigation($navContainerConfig);
         // Load the xml navigation menu
         // Attach the Zend ACL to the Navigation menu
         $auth = Zend_Auth::getInstance();
         if ($auth) {
             $acl = $auth->getStorage()->read();
             if (is_object($acl)) {
                 Zend_View_Helper_Navigation_HelperAbstract::setDefaultAcl($acl);
                 Zend_View_Helper_Navigation_HelperAbstract::setDefaultRole("guest");
             }
         }
     }
     if ($navContainer) {
         foreach ($navContainer->getPages() as $page) {
             foreach ($page->getPages() as $subpage) {
                 foreach ($subpage->getPages() as $subsubpage) {
                     $uri = $subsubpage->getHref();
                     if ($uri === $request->getRequestUri()) {
                         $subsubpage->setActive(true);
                     }
                 }
             }
         }
         $view->navigation($navContainer);
     }
 }
 /**
  * Set navigation in layout
  * @return Zend_View
  */
 protected function _initNavigation()
 {
     $this->bootstrap('layout');
     $layout = $this->getResource('layout');
     $view = $layout->getView();
     $lvl0 = new Zend_Navigation();
     $lvl1 = new Zend_Navigation_Page_Mvc();
     $lvl1->setLabel('Vakantiewoning huren')->setModule('rent')->setController('index')->setAction('index')->setRoute('module');
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Vakantiewoningen')->setModule('rent')->setController('index')->setAction('index')->setRoute('module_controller');
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Vakantiewoning informatie')->setModule('holidayhome')->setController('index')->setAction('show')->setRoute('module_controller_action');
     $lvl2->addPage($lvl3);
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Bestemmingen')->setModule('rent')->setController('residence')->setAction('index')->setRoute('module_controller');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Klantenservice')->setModule('customerservice')->setController('index')->setAction('index')->setRoute('module');
     $lvl1->addPage($lvl2);
     $lvl0->addPage($lvl1);
     $lvl1 = new Zend_Navigation_Page_Mvc();
     $lvl1->setLabel('Vakantiewoning verhuren')->setModule('rentout')->setController('index')->setAction('index')->setRoute('module');
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Vakantiewoningen')->setModule('rentout')->setController('index')->setAction('index')->setRoute('module_controller');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Informatie')->setModule('rentout')->setController('information')->setAction('index')->setRoute('module_controller');
     $lvl1->addPage($lvl2);
     $lvl0->addPage($lvl1);
     $lvl1 = new Zend_Navigation_Page_Mvc();
     $lvl1->setLabel('Mijn account')->setModule('user')->setController('myaccount')->setAction('index')->setRoute('module_controller');
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Mijn gegevens')->setModule('user')->setController('myaccount')->setAction('index')->setRoute('module_controller');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Gegevens aanpassen')->setModule('user')->setController('myaccount')->setAction('edit')->setRoute('module_controller_action');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Inloggen')->setModule('user')->setController('myaccount')->setAction('login')->setRoute('module_controller_action');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Uitloggen')->setModule('user')->setController('myaccount')->setAction('logout')->setRoute('module_controller_action');
     $lvl1->addPage($lvl2);
     $lvl0->addPage($lvl1);
     $lvl1 = new Zend_Navigation_Page_Mvc();
     $lvl1->setLabel('Algemene informatie')->setModule('main')->setController('contact')->setAction('index')->setRoute('module_controller');
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Sitemap')->setModule('main')->setController('sitemap')->setAction('index')->setRoute('module_controller_action');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Over ons')->setModule('main')->setController('aboutus')->setAction('index')->setRoute('module_controller');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Contact')->setModule('main')->setController('contact')->setAction('index')->setRoute('module_controller');
     $lvl1->addPage($lvl2);
     $lvl0->addPage($lvl1);
     $lvl1 = new Zend_Navigation_Page_Mvc();
     $lvl1->setLabel('Beheer')->setModule('admin')->setController('index')->setAction('index')->setRoute('module');
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Financieel')->setModule('holidayhome')->setController('index')->setAction('financial')->setRoute('module_controller_action');
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Vakantiewoningen')->setModule('holidayhome')->setController('index')->setAction('financial')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Reserveringskosten')->setModule('holidayhome')->setController('charges')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('"Per nacht" toevoegen')->setModule('holidayhome')->setController('chargenight')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('"Per nacht" aanpassen')->setModule('holidayhome')->setController('chargenight')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('"Per reservering" toevo...')->setModule('holidayhome')->setController('chargereservation')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('"Per reservering" aanp...')->setModule('holidayhome')->setController('chargereservation')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('"Optioneel" toevoegen')->setModule('holidayhome')->setController('chargeoptional')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('"Optioneel" aanpassen')->setModule('holidayhome')->setController('chargeoptional')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Extra uitgaven')->setModule('holidayhome')->setController('invoicecharge')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Toevoegen')->setModule('holidayhome')->setController('invoicecharge')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Aanpassen')->setModule('holidayhome')->setController('invoicecharge')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Percentages')->setModule('holidayhome')->setController('percentages')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Week toevoegen')->setModule('holidayhome')->setController('percentageweek')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Week aanpassen')->setModule('holidayhome')->setController('percentageweek')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Dag toevoegen')->setModule('holidayhome')->setController('percentageday')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Dag aanpassen')->setModule('holidayhome')->setController('percentageday')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Vakantiewoningen')->setModule('holidayhome')->setController('index')->setAction('admin')->setRoute('module_controller_action');
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Vakantiewoning')->setModule('holidayhome')->setController('index')->setAction('admin')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Woning toevoegen')->setModule('holidayhome')->setController('index')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Woning aanpassen')->setModule('holidayhome')->setController('index')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel("Foto's")->setModule('holidayhome')->setController('photo')->setAction('index')->setRoute('module_controller_action_home');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Foto toevoegen')->setModule('holidayhome')->setController('photo')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Foto aanpassen')->setModule('holidayhome')->setController('photo')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel("Informatie email")->setModule('holidayhome')->setController('infomail')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel("Commentaar")->setModule('holidayhome')->setController('comment')->setAction('index')->setRoute('module_controller_action_home');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Commentaar toevoegen')->setModule('holidayhome')->setController('comment')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Commentaar aanpassen')->setModule('holidayhome')->setController('comment')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel("Bed aantallen")->setModule('holidayhome')->setController('bedamount')->setAction('index')->setRoute('module_controller_action_home');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Aantal toevoegen')->setModule('holidayhome')->setController('bedamount')->setAction('new')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Aantal aanpassen')->setModule('holidayhome')->setController('bedamount')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Gebruikers')->setModule('user')->setController('index')->setAction('admin')->setRoute('module_controller_action');
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Gebruiker toevoegen')->setModule('user')->setController('index')->setAction('new')->setRoute('module_controller_action');
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Gebruiker aanpassen')->setModule('user')->setController('index')->setAction('edit')->setRoute('module_controller_action');
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Eigenaren')->setModule('user')->setController('owner')->setAction('admin')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Eigenaar toevoegen')->setModule('user')->setController('owner')->setAction('new')->setRoute('module_controller_action_showOnActive');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Eigenaar aanpassen')->setModule('user')->setController('owner')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Reserveren')->setModule('reservation')->setController('index')->setAction('admin')->setRoute('module_controller_action');
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Reserverings data')->setModule('reservation')->setController('date')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Maand-data aanpassen')->setModule('reservation')->setController('date')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Reserveringen')->setModule('reservation')->setController('reservation')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Reservering toevoegen')->setModule('reservation')->setController('reservation')->setAction('new')->setRoute('module_controller_action_home');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Reservering aanpassen')->setModule('reservation')->setController('reservation')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Reserveringen')->setModule('reservation')->setController('reservation')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Blokkeringen')->setModule('reservation')->setController('block')->setAction('admin')->setRoute('module_controller_action_home');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Blokkering aanpassen')->setModule('reservation')->setController('block')->setAction('edit')->setRoute('module_controller_action_home');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Blokkering toevoegen')->setModule('reservation')->setController('block')->setAction('new')->setRoute('module_controller_action_home');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Klantenservice')->setModule('customerservice')->setController('index')->setAction('index')->setRoute('module');
     $lvl1->addPage($lvl2);
     $lvl2 = new Zend_Navigation_Page_Mvc();
     $lvl2->setLabel('Systeem')->setModule('homemanagement')->setController('charges')->setAction('admin')->setRoute('module_controller_action');
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Reserveringskosten')->setModule('homemanagement')->setController('charges')->setAction('admin');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('"Nacht" toevoegen')->setModule('homemanagement')->setController('chargenight')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('"Nacht" Aanpassen')->setModule('homemanagement')->setController('chargenight')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('"Reservering" toevoegen')->setModule('homemanagement')->setController('chargereservation')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('"Reservering" Aanpassen')->setModule('homemanagement')->setController('chargereservation')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('"Optioneel" toevoegen')->setModule('homemanagement')->setController('chargeoptional')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('"Optioneel" aanpassen')->setModule('homemanagement')->setController('chargeoptional')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Bedden')->setModule('homemanagement')->setController('bed')->setAction('admin')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Bed aanpassen')->setModule('homemanagement')->setController('bed')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Bed toevoegen')->setModule('homemanagement')->setController('bed')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Kenmerken')->setModule('homemanagement')->setController('options')->setAction('admin')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Kenmerk toevoegen')->setModule('homemanagement')->setController('option')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Kenmerk aanpassen')->setModule('homemanagement')->setController('option')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Kenmerk-categorie toev...')->setModule('homemanagement')->setController('optioncategory')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Kenmerk-categorie aan...')->setModule('homemanagement')->setController('optioncategory')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Categorieen')->setModule('homemanagement')->setController('category')->setAction('admin')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Categorie toevoegen')->setModule('homemanagement')->setController('category')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Categorie aanpassen')->setModule('homemanagement')->setController('category')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Geografisch')->setModule('homemanagement')->setController('geo')->setAction('admin')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Land toevoegen')->setModule('homemanagement')->setController('country')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Land aanpassen')->setModule('homemanagement')->setController('country')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Regio toevoegen')->setModule('homemanagement')->setController('region')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Regio aanpassen')->setModule('homemanagement')->setController('region')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Plaats toevoegen')->setModule('homemanagement')->setController('city')->setAction('new')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Plaats aanpassen')->setModule('homemanagement')->setController('city')->setAction('edit')->setRoute('module_controller_action');
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl3 = new Zend_Navigation_Page_Mvc();
     $lvl3->setLabel('Publiek')->setModule('public')->setController('country')->setAction('admin')->setRoute('module_controller_action');
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Landen')->setModule('public')->setController('country')->setAction('admin')->setRoute('module_controller_action');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Land toevoegen')->setModule('public')->setController('country')->setAction('new')->setRoute('module_controller_action');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Land aanpassen')->setModule('public')->setController('country')->setAction('edit')->setRoute('module_controller_action');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl4 = new Zend_Navigation_Page_Mvc();
     $lvl4->setLabel('Talen')->setModule('public')->setController('lang')->setAction('admin')->setRoute('module_controller_action');
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Land toevoegen')->setModule('public')->setController('lang')->setAction('new')->setRoute('module_controller_action');
     $lvl4->addPage($lvl5);
     $lvl5 = new Zend_Navigation_Page_Mvc();
     $lvl5->setLabel('Land aanpassen')->setModule('public')->setController('lang')->setAction('edit')->setRoute('module_controller_action');
     $lvl4->addPage($lvl5);
     $lvl3->addPage($lvl4);
     $lvl2->addPage($lvl3);
     $lvl1->addPage($lvl2);
     $lvl0->addPage($lvl1);
     /**
      * Testing
      */
     /**
      * Specific navigations
      */
     $view->loginMenu = $lvl0->findOneByLabel('Mijn account');
     $view->adminMenu = $lvl0->findOneByLabel('Beheer');
     /**
      * view
      */
     $view->navigation($lvl0);
     return $view;
 }