From 3c9ad752819538cf147c897b804bfbb58a3771c7 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 2 Jun 2016 10:53:17 +0200 Subject: [PATCH] Suppression boucle sur service --- application/configs/menu.config.php | 3 --- .../Application/Controller/Plugin/Menu.php | 23 +------------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/application/configs/menu.config.php b/application/configs/menu.config.php index 2e2bbd2d..5b9eb80f 100644 --- a/application/configs/menu.config.php +++ b/application/configs/menu.config.php @@ -26,9 +26,6 @@ return array( 'action' => 'services', 'pages' => array(), ), - array( - 'uri' => '#', - ), ), ), array( diff --git a/library/Application/Controller/Plugin/Menu.php b/library/Application/Controller/Plugin/Menu.php index 3f948876..50912183 100644 --- a/library/Application/Controller/Plugin/Menu.php +++ b/library/Application/Controller/Plugin/Menu.php @@ -23,27 +23,6 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract $config = include APPLICATION_PATH . '/configs/menu.config.php'; $container = new Zend_Navigation($config); - // --- Add services - $pagesService = array(); - if ( count($view->WsServices)>0 ) { - foreach ( $view->WsServices as $service => $params ) { - $service = array( - 'label'=> $params['name'], - 'controller' => 'documentation', - 'action' => 'service', - 'params' => array( - 'name' => $service, - 'type' => $params['type'], - ), - ); - - $pagesService[] = $service; - } - } - - $found = $container->findOneByLabel("Documentation"); - $found->addPages($pagesService); - // --- Secure demo mode $auth = Zend_Auth::getInstance(); if ($auth->hasIdentity()) { @@ -53,7 +32,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract $container->removePage($toSecure); } } - + $view->navigation($container); }