Correction affichage doc webservice clients

This commit is contained in:
Michael RICOIS 2011-10-10 13:50:44 +00:00
parent ce3fdcb6ef
commit b3f7f7c4a5
3 changed files with 9 additions and 11 deletions

View File

@ -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']) {

View File

@ -61,9 +61,10 @@ class IndexController extends Zend_Controller_Action
$configServiceVersions = new Zend_Config_Ini('WsScore/Clients/'.$serviceName.'/Versions.ini', null);
$serviceVersions = array();
foreach( $configServiceVersions->toArray() as $section => $params )
{
{
$serviceVersions[$section] = $params;
$this->serviceList[$serviceName]['version'] = $serviceVersions;
$this->serviceList[$serviceName]['type'] = 'client';
}
}
}

View File

@ -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>