Hi Irwan,

I also experienced some changes when I switched from AMFPHP 1.9 to 2.0 (or 
later).

My experience was that I had to change some of my PHP code. When I pass a AS 
object, this is also a object in PHP and not a array

maybe you should try:

function somefunction($PHPParam)
{
$Param1 = $PHPParam->Parameter00;
$Param2 = $PHPParam->Parameter01;
$Param3 = $PHPParam->Parameter02;

//do something
return "something";
}

Best regards

Marcus

Am 27.10.2014 um 07:56 schrieb irwan.husein <[email protected]>:

> Hi All,
> i'm flex + php developer since flex 4.6
> today i'm start migrating old amfphp server (1.9) to amfphp 2.2.1 + flex
> 4.13
> 
> unfortunately, i've found some problems
> in amfphp 1.9, i can do remote call like this 
> 
> *Flex Client :*
> public var gateway:NetConnection;
> 
> var PHPParam:Object = new Object;
> PHPParam.Parameter00 = 'param1';
> PHPParam.Parameter01 = 'param2';
> PHPParam.Parameter02 = 'param3';
> 
> gateway.call("someservice.somefunction", new Responder(resultData,
> null),PHPParam);
> 
> *AMFPHP Services*
> 
> function somefunction($PHPParam)
> {
> $Param1 = $PHPParam['Parameter00'];
> $Param2 = $PHPParam['Parameter01'];
> $Param3 = $PHPParam['Parameter02'];
> 
> //do something
> return "something";
> }
> 
> but, in AMFPHP 2.2.1, i can't do it anymore, i can't sent object to php
> services, only simple parameter.
> in their website, they suggest using JSON statement, but theres no example
> 
> if anyone has ever experienced ?
> or we just go with ValueObject approach?
> 
> regards,
> Irwan
> 
> 
> 
> --
> View this message in context: 
> http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2-1-tp8506.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to