Hi,
i want to send some array through the RPC PHP contrib. But i could not receive
a valid array an the PHP site. So i figured out some sniplet like this. I guess
i am sending an object, but I can handle it on my PHP script. So my question
is, is there a better way to send arrays through RPC to PHP?
-- sniplet qooxdoo --
var logindata =
{
bnt_benutzerlogin : bnt_benutzerlogin.getValue(),
bnt_passwort : bnt_passwort.getValue()
};
this.loginantwort = this.rpc.callSync("login", logindata);
-- sniplet PHP --
function method_login($params, $error)
{
$bnt_benutzerlogin=$params[0]->bnt_benutzerlogin;
$bnt_passwort=$params[0]->bnt_passwort;
...
return $someArray;
}
regards Mustafa
PS.: returning an Array from PHP to qooxdoo is very comfortable
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel