简体   繁体   English

Laucast Restler在CodeIgniter中

[英]Luracast Restler in CodeIgniter

I am trying to put in Restler as part of my CI Library. 我正在尝试将Restler放入我的CI库中。 I wonder if this is possible with Restler because I'm getting Server Error. 我想知道Restler是否有可能,因为出现服务器错误。 Should I just separate Restler folder to my CI folder (which works right now)? 我应该将Restler文件夹与CI文件夹分开吗(现在可以使用)?

I want to integrate it to my CI so I can access the models eg for authentication, getting user data...etc. 我想将其集成到我的CI中,以便可以访问模型,例如进行身份验证,获取用户数据等。 instead of creating another config file and model classes. 而不是创建另一个配置文件和模型类。

I have invested a lot of time trying to find some workaround to make Restler work with CI but no luck. 我花了很多时间试图找到一些解决方法来使Restler与CI一起工作,但是没有运气。

Thanks! 谢谢!

I don't think there's an easy way to integrate Restler into CI, you would have to totally rework the CI routing class. 我认为没有将Restler集成到CI中的简便方法,您必须完全重做CI路由类。

I would recommend that you instead go with Phil Sturgeon's excellent REST server for CI , which is a pretty simple to put into your existing CI application. 我建议您改为使用Phil Sturgeon出色的CI REST服务器 ,将其轻松放入现有CI应用程序中即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM