Re: [flexcoders] How to save an ArrayCollection to php via HTTPService
Using amfphp would definitely be the easiest. Then you would just need to set up a RemoteObject tag and call ro.saveArrayCollection(arr_collection) and be done with it. You would receive the ArrayCollection as a PHP array on the other side. Patrick rkrater a écrit : > > Can someone give me an example of how to save an ArrayCollection to > php via HTTPService. > > I have a datagrid with a ArrayCollection as the dataprovider. I want > to click the save button and it is passed to my php page to then be > saved in the database. Any ideas are welcomed. Thanks! > > ---Here is my code so far--- > > > > {arr_collecti on} > > > > This gives me [object Object],[object Object],[object Object] when i > try to pass it back. Any ideas would help a ton!!! > >
Re: [flexcoders] How to save an ArrayCollection to php via HTTPService
Have a look at JSON: http://www.json.org/ regards, Muzak - Original Message - From: "rkrater" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 20, 2007 5:24 PM Subject: [flexcoders] How to save an ArrayCollection to php via HTTPService Can someone give me an example of how to save an ArrayCollection to php via HTTPService. I have a datagrid with a ArrayCollection as the dataprovider. I want to click the save button and it is passed to my php page to then be saved in the database. Any ideas are welcomed. Thanks! ---Here is my code so far--- {arr_collection} This gives me [object Object],[object Object],[object Object] when i try to pass it back. Any ideas would help a ton!!!
RE: [flexcoders] How to save an ArrayCollection to php via HTTPService
To send an ArrayCollection over the wire via an HTTPService, you will have to convert the array to some readable format for your php service. Usually this would be xml. So you would need to convert your ArrayCollection to an XML string (could do a foreach on the AC and add a child node to the xml of every entry in the AC or something similar). Does the PHP service already exist? Does it take an xml string? Karl Cynergy From: flexcoders@yahoogroups.com on behalf of rkrater Sent: Tue 2/20/2007 10:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to save an ArrayCollection to php via HTTPService Can someone give me an example of how to save an ArrayCollection to php via HTTPService. I have a datagrid with a ArrayCollection as the dataprovider. I want to click the save button and it is passed to my php page to then be saved in the database. Any ideas are welcomed. Thanks! ---Here is my code so far--- {arr_collection} This gives me [object Object],[object Object],[object Object] when i try to pass it back. Any ideas would help a ton!!!
[flexcoders] How to save an ArrayCollection to php via HTTPService
Can someone give me an example of how to save an ArrayCollection to php via HTTPService. I have a datagrid with a ArrayCollection as the dataprovider. I want to click the save button and it is passed to my php page to then be saved in the database. Any ideas are welcomed. Thanks! ---Here is my code so far--- {arr_collection} This gives me [object Object],[object Object],[object Object] when i try to pass it back. Any ideas would help a ton!!!