php - Flex object not typed correctly -


i'm struggling flex class instance amfphp (v2.2)

simplified code in flex:

    [remoteclass(alias="project")]     public class project     {         public function project()         {         }     } 

code in php:

    class project {         var $_explicittype = "project";          public function foo()         {             return "bar";         }     } 

at point, send code server:

myremoteobjectservice.testmethod(myprojectinstance);

which handled in php this:

    public function testmethod($projectinstance)     {         return $projectinstance->foo;     } 

this should return 'bar' flex application instead,

faultcode:channel.call.failed faultstring:'error' faultdetail:'netconnection.call.failed: http: status 500'

what work is:

    public function testmethod()     {         $project = new project();         return $project->foo;     } 

any appreciated!

dany

found answer: standard location vo objects /services/vo/ in case, vo objects in /dto/ when put vo objects /services/vo/, worked expected.

but

i tried setting /dto/ in config using:

$this->vofolders = array(amfphp_rootpath . 'dto/');

and didn't work. so:

  • i'm glad have solved question
  • is bug in amfphp config?

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -