public function preDispatch(Zend_Controller_Request_Abstract $request) { $geo = Model_Hm_Geo_Country::findTreeForNavigation()->execute(); $view = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer')->view; $navigation = $view->navigation(); $targetPage = $navigation->findOneByLabel('Bestemmingen'); foreach ($geo as $country) { $countryPage = new Zend_Navigation_Page_Mvc(); $countryPage->setLabel($country->translationHandler()->name)->setAction('index')->setRoute('rent_residences'); foreach ($country->Regions as $region) { $regionPage = new Zend_Navigation_Page_Mvc(); $regionPage->setLabel($region->name)->setRoute('rent_residences'); foreach ($region->Cities as $city) { $cityPage = new Zend_Navigation_Page_Mvc(); $cityPage->setLabel($city->name)->setAction('show')->setController('residence')->setModule('rent')->setTitle(substr($city->translationHandler()->description, 0, 80) . ' ...')->setRoute('rent_residence')->setParams(array('slug' => $city->slug)); $regionPage->addPage($cityPage); } $countryPage->addPage($regionPage); } $targetPage->addPage($countryPage); } }
/** * @group ZF-11664 */ public function testIsActiveWithoutAndWithRecursiveOption() { // Parent $page = new Zend_Navigation_Page_Mvc(array('controller' => 'index', 'action' => 'index')); // Child $page->addPage(new Zend_Navigation_Page_Mvc(array('controller' => 'index', 'action' => 'foo'))); // Front controller $this->_front->getRequest()->setParams(array('controller' => 'index', 'action' => 'foo')); $this->assertFalse($page->isActive()); $this->assertTrue($page->isActive(true)); }
$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);
public function renderRecure($objects, $depth = '', $maxDepth = -1) { $pages[] = array(); foreach ($objects as $key => $value) { $page = $value['object']; $cpage = new Zend_Navigation_Page_Mvc(array('action' => 'index', 'controller' => 'news', 'module' => 'news', 'params' => array('id' => $page->getId(), 'alias' => $page->getAlias()), 'label' => $page->getName())); if (is_array($value['child'])) { $arr = $this->renderRecure($value['child'], $depth + 1, $maxDepth); foreach ($arr as $value) { if ($value) { $cpage->addPage($value); } } } $pages[] = $cpage; } return $pages; }
/** * 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; }