developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 14 years ago
Closed 14 years ago
#246 closed bug (fixed)
JXmlRpcRequest : problème récupération des paramètres
Reported by: | fg | Owned by: | laurentj |
---|---|---|---|
Priority: | high | Milestone: | Jelix 1.0beta3 |
Component: | jelix:core request | Version: | trunk |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | ||
Hosting Provider: | Php version: |
Description
Lorsque l'on souhaite récupérer les paramètres envoyés par un client XML-RPC, on obtient toujours NULL :
// Dans l'ation du controleur : $parametres = $this->param('params'); var_dump($parametres); // Renvoie toujours NULL
En regardant le fichier jXmlRpcRequest.class.php, il suffit de faire une petite modification à la ligne 47 pour que cela fonctionne :
if(is_array($vars)){ $this->params = $vars; }else $this->params['params'] = $vars;
Il suffit de supprimer la condition et de ne garder que la dernière partie :
"$this->params['params'] = $vars;"
Change History (1)
comment:1 Changed 14 years ago by laurentj
- Milestone set to Jelix 1.0beta3
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
En effet, il y a un bug.. Corrigé dans le trunk. Merci :-)