Correction affichage doc webservice clients
This commit is contained in:
parent
ce3fdcb6ef
commit
b3f7f7c4a5
@ -54,7 +54,7 @@ class DocumentationController extends Zend_Controller_Action
|
||||
}
|
||||
|
||||
// Gestion des versions
|
||||
$configServiceVersions = new Zend_Config_Ini('WsScore/'.$ws.'/Versions.ini');
|
||||
$configServiceVersions = new Zend_Config_Ini('WsScore/'.ucfirst($ws).'/Versions.ini');
|
||||
foreach( $configServiceVersions->toArray() as $section => $params ){
|
||||
$serviceVersions[$section] = $params;
|
||||
if ($params['defaut']) {
|
||||
|
@ -64,6 +64,7 @@ class IndexController extends Zend_Controller_Action
|
||||
{
|
||||
$serviceVersions[$section] = $params;
|
||||
$this->serviceList[$serviceName]['version'] = $serviceVersions;
|
||||
$this->serviceList[$serviceName]['type'] = 'client';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,16 +4,13 @@
|
||||
|
||||
<li>
|
||||
<?php if ($ws['type'] == 'client'){?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'documentation',
|
||||
'action' => 'clients',
|
||||
'nom' => strtolower($key)
|
||||
))?>"><?=$ws['titre']?></a>
|
||||
<a href="<?=$this->url(array('controller' => 'documentation', 'action' => 'clients', 'nom' => strtolower($key)))?>">
|
||||
<?=ucfirst($key)?>
|
||||
</a>
|
||||
<?php } else {?>
|
||||
<a href="<?=$this->url(array(
|
||||
'controller' => 'documentation',
|
||||
'ws' => $key
|
||||
))?>"><?=ucfirst($key)?></a>
|
||||
<a href="<?=$this->url(array('controller' => 'documentation', 'ws' => $key))?>">
|
||||
<?=ucfirst($key)?>
|
||||
</a>
|
||||
<?php }?>
|
||||
</li>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user