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

View File

@ -64,6 +64,7 @@ class IndexController extends Zend_Controller_Action
{ {
$serviceVersions[$section] = $params; $serviceVersions[$section] = $params;
$this->serviceList[$serviceName]['version'] = $serviceVersions; $this->serviceList[$serviceName]['version'] = $serviceVersions;
$this->serviceList[$serviceName]['type'] = 'client';
} }
} }
} }

View File

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