Sencha、AMFPHP 和 RESTfull 服务
我正在 Sencha 中处理模型。数据来自 AMFPHP 服务。我在文档中读到,当您使用 .save() 方法时,Sencha 会向您提供的 URL 发出 POST 请求。
如何在 AMFPHP 中处理这些请求?我是否必须制作不同的功能,或者切换某些东西?
希望有人能帮助我解决这个问题!其他建议也很好,比如了解如何与 AMFPHP 结合使用模型并保存数据。
提前致谢!
I'm working with models in Sencha. The data comes from an AMFPHP-service. I read in the docs that when you use the .save()-method, Sencha makes a POST-request to the URL you have given.
How is it possible to handle those requests in AMFPHP? Doe I have to make different functions, or switch-case something?
Hope someone can help me with this! Other suggestions are also good, just like to know how to work with models and save data with them in combination with AMFPHP.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有一个类似的案例。我有一个使用 amfphp 与数据服务通信的 Flex 项目,目前正在使用 Ext JS 开发第二个需要相同数据的项目。
我的解决方案是在前端编写自己的网关并绕过分机代理...
我很好奇其他人是如何处理这个问题的。
谢谢!
I have a similar case. I have a flex project that uses amfphp to communicate with a data service, and am currently developing a second project with Ext JS that needs the same data.
My solution is to write my own gateway in the front end and bypass the ext proxies...
I'm curious how others have handled this.
Thanks!