I'm writing a basic API to some backend settings and I would like to return the results in different formats (xml, html, etc) for different frontends to consume. How would I go about outputting amf?
I can think of three different routes (and none seem like they would be feasible)..
Wrap the facade within the services class...and somehow return data from the viewcomponents?
Create the gateway/services and pass that into the API to be used as a viewcomponent...and somehow still be able to access it properly as a remote object?
Something like this: http://efreedom.com/Question/1-1942890/Self-Contained-Library-Serializing-PHP-Data-AMF
where I basically have to format the amf output myself.
Any ideas greatly appreciated!