Correct display of documentation
This commit is contained in:
parent
58f913ae8c
commit
060a806512
@ -8,7 +8,7 @@ class DocumentationController extends Zend_Controller_Action
|
||||
public function indexAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$ws = $request->getParam('ws','Entreprise');
|
||||
$ws = strtolower($request->getParam('ws','Entreprise'));
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
||||
//Si client possède un webservice particulier alors on redirige vers la doc clients
|
||||
@ -104,8 +104,8 @@ class DocumentationController extends Zend_Controller_Action
|
||||
public function clientsAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$client = $request->getParam('nom');
|
||||
$ws = 'Entreprise';
|
||||
$client = strtolower($request->getParam('nom'));
|
||||
$ws = 'entreprise';
|
||||
|
||||
// Gestion des versions
|
||||
$clients = include APPLICATION_PATH . '/../library/WsScore/Clients/ClientsConfig.php';
|
||||
@ -123,7 +123,7 @@ class DocumentationController extends Zend_Controller_Action
|
||||
|
||||
//Génération du tableau de mapping
|
||||
$classmap = array();
|
||||
$wsConfig = new Zend_Config_Ini($pathClassService.$ws.'.ini');
|
||||
$wsConfig = new Zend_Config_Ini($pathClassService.ucfirst($ws).'.ini');
|
||||
if ( $wsConfig->count()>0 ) {
|
||||
foreach($wsConfig->Type->toArray() as $Type){
|
||||
$classmap[$Type] = $Type;
|
||||
@ -154,7 +154,6 @@ class DocumentationController extends Zend_Controller_Action
|
||||
$this->view->assign('serviceMethods', $tabServiceMethodsK);
|
||||
$this->view->assign('serviceTypes', $tabServiceTypes);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user