使用 Kohana 3 PHP 的 RESTful Web 服务
是否可以用kohana 3来做restful服务,我查看了源码,发现了一个抽象类Kohana_Controller_REST
,如何使用它?如果有人可以发布带有路由的片段作为示例代码,我们将非常感激。
另外,缺乏关于 KO3 的文档让我抓狂,如果有人知道一个文档良好、快速且经过验证的 PHP 框架可与 100% javascript 前端一起使用,请告诉我,但我想坚持使用 Kohana,因为强大的 ORM 库。
谢谢。
Is it possible to make restful services with kohana 3 , i reviewed the source and found an abstract class Kohana_Controller_REST
, how to use it ? If someone can post a snippet with routing as Example code, it will be very appreciated.
Also, the lack of documentation on KO3 is making me crazy, if someone knows a well documented, fast and proven PHP framework to use with an 100% javascript Frontend, just let me know, but i would like to stick with Kohana because of the powerful ORM lib.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这看起来像是 3.2 最有前途的模块(当前稳定版)
https://github.com/morgan/kohana-重新调整
This looks like the most promising module for 3.2 (current stable)
https://github.com/morgan/kohana-restify
我非常高兴使用 CodeIgniter REST Server,它是 CodeIgniter 框架的扩展。与 Kohana 相比,CI 的优点之一是其优秀的文档。话又说回来,Kohana 是 CI 的“改进”分支;例如,CI 没有现成的 ORM 库。
I have been very happy using CodeIgniter REST Server, which is an extension to the CodeIgniter framework. One of the nice things about CI is the excellent documentation when compared to Kohana. Then again, Kohana is an "improved" fork of CI; for example, CI does not have an out-of-the-box ORM library.