Suppression boucle sur service
This commit is contained in:
parent
569b19bc3a
commit
3c9ad75281
@ -26,9 +26,6 @@ return array(
|
|||||||
'action' => 'services',
|
'action' => 'services',
|
||||||
'pages' => array(),
|
'pages' => array(),
|
||||||
),
|
),
|
||||||
array(
|
|
||||||
'uri' => '#',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -23,27 +23,6 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
|
|||||||
$config = include APPLICATION_PATH . '/configs/menu.config.php';
|
$config = include APPLICATION_PATH . '/configs/menu.config.php';
|
||||||
$container = new Zend_Navigation($config);
|
$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
|
// --- Secure demo mode
|
||||||
$auth = Zend_Auth::getInstance();
|
$auth = Zend_Auth::getInstance();
|
||||||
if ($auth->hasIdentity()) {
|
if ($auth->hasIdentity()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user