Sencha、AMFPHP 和 RESTfull 服务

发布于 2024-10-30 01:57:24 字数 216 浏览 6 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悟红尘 2024-11-06 01:57:24

我有一个类似的案例。我有一个使用 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文