Suppression boucle sur service
This commit is contained in:
parent
569b19bc3a
commit
3c9ad75281
@ -26,9 +26,6 @@ return array(
|
||||
'action' => 'services',
|
||||
'pages' => array(),
|
||||
),
|
||||
array(
|
||||
'uri' => '#',
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user