完整的 Ajax PHP MVC 框架
我想创建一个网站。我想对每个超链接和表单使用 Ajax。我想使用 jquery,但很难为每个链接创建通用代码。我想知道是否有任何可以与ajax配合使用的PHP MVC Framewrok? 谢谢。
I want to create a website. I want to use Ajax for every hyperlink and form. I wanted to use jquery but it is hard to create a general code for every link. I want to know if there is any PHP MVC Framewrok which works with ajax?
thanx.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@Kenan,12 月还没有,但现在有了 Agile Toolkit。它也是开源的。
它的工作方式是你在“页面”上放置一个“视图”,然后可以通过 JavaScript 对其进行操作。这是示例:
单击按钮将使用 AJAX 重新加载页面的部分。
请发表评论并告诉我如果这就是您正在寻找的东西。作为贡献者,我很感兴趣。
@Kenan, There wasn't in december but now there is Agile Toolkit. It's open source too.
The way how it works is you put a "View" on your "Page" and then can manipulate with it through javascript. So here is example:
Clicking button would use AJAX to reload the section of the page.
Please comment and let me know what if this is what you were looking for. As a contributor i'm interested.
目前它们还不是 PHP 的“完整”ajax mvc - 但是:
请查看 atk-framework.com、xisc.com 或 cakephp.org。
由于它们是框架,因此您将用于应用程序的接口可以在平台上实现;你将能够使用 MVC 框架作为你自己编写的包装器的平台。
如果你像这样实现它,应用程序将使用第二层,该层由 mvc 管理并可通过内部 API 请求。
可能看起来很复杂,但是,对我来说,这是唯一且最合乎逻辑的解决方案:)
Currently they're no "full" ajax mvc's for PHP - BUT:
Check out atk-framework.com, xisc.com or cakephp.org.
Since they're frameworks, the interfaces you will be using for the application can be implemented onto the platform; you'll be able to use the MVC-framework as platform for a self-written wrapper you put onto it..
If you implement it like that, the application uses a second layer which is managed by the mvc and requestable via an internal API.
Might seem complicated, but well, the only and to me most logical solution :)