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
|
// 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 ){
|
foreach( $configServiceVersions->toArray() as $section => $params ){
|
||||||
$serviceVersions[$section] = $params;
|
$serviceVersions[$section] = $params;
|
||||||
if ($params['defaut']) {
|
if ($params['defaut']) {
|
||||||
|
@ -61,9 +61,10 @@ class IndexController extends Zend_Controller_Action
|
|||||||
$configServiceVersions = new Zend_Config_Ini('WsScore/Clients/'.$serviceName.'/Versions.ini', null);
|
$configServiceVersions = new Zend_Config_Ini('WsScore/Clients/'.$serviceName.'/Versions.ini', null);
|
||||||
$serviceVersions = array();
|
$serviceVersions = array();
|
||||||
foreach( $configServiceVersions->toArray() as $section => $params )
|
foreach( $configServiceVersions->toArray() as $section => $params )
|
||||||
{
|
{
|
||||||
$serviceVersions[$section] = $params;
|
$serviceVersions[$section] = $params;
|
||||||
$this->serviceList[$serviceName]['version'] = $serviceVersions;
|
$this->serviceList[$serviceName]['version'] = $serviceVersions;
|
||||||
|
$this->serviceList[$serviceName]['type'] = 'client';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,16 +4,13 @@
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
<?php if ($ws['type'] == 'client'){?>
|
<?php if ($ws['type'] == 'client'){?>
|
||||||
<a href="<?=$this->url(array(
|
<a href="<?=$this->url(array('controller' => 'documentation', 'action' => 'clients', 'nom' => strtolower($key)))?>">
|
||||||
'controller' => 'documentation',
|
<?=ucfirst($key)?>
|
||||||
'action' => 'clients',
|
</a>
|
||||||
'nom' => strtolower($key)
|
|
||||||
))?>"><?=$ws['titre']?></a>
|
|
||||||
<?php } else {?>
|
<?php } else {?>
|
||||||
<a href="<?=$this->url(array(
|
<a href="<?=$this->url(array('controller' => 'documentation', 'ws' => $key))?>">
|
||||||
'controller' => 'documentation',
|
<?=ucfirst($key)?>
|
||||||
'ws' => $key
|
</a>
|
||||||
))?>"><?=ucfirst($key)?></a>
|
|
||||||
<?php }?>
|
<?php }?>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user