hi marcus,
it works...  :D
just doing some find and replace, and all services OK again.

btw, what's your opinion about ZendAMF and amfphp?
performance, deployment, etc..

regards,


On 27 October 2014 16:35, Marcus Fritze [via Apache Flex Users] <
[email protected]> wrote:

> 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 <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=8509&i=0>>:
>
> 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.
>
>
>
> *signature.asc* (507 bytes) Download Attachment
> <http://apache-flex-users.2333346.n4.nabble.com/attachment/8509/0/signature.asc>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2-1-tp8506p8509.html
>  To unsubscribe from Flex AMFPHP 2.2.1, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=8506&code=aXJ3YW4uaHVzZWluQGdtYWlsLmNvbXw4NTA2fC0xMzI1NzY0NTI0>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Flex-AMFPHP-2-2-1-tp8506p8513.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to