Suppression boucle sur service

This commit is contained in:
Michael RICOIS 2016-06-02 10:53:17 +02:00
parent 569b19bc3a
commit 3c9ad75281
2 changed files with 1 additions and 25 deletions

View File

@ -26,9 +26,6 @@ return array(
'action' => 'services',
'pages' => array(),
),
array(
'uri' => '#',
),
),
),
array(

View File

@ -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);
}