启用REST我刚刚完成建立一个HMVC笨以下步骤here。上HMVC笨设置
我现在想创建一个模块“API”我希望使用Phil Sturgeon's REST library。
它指出here我需要延长MX_Controller而非是CI_Controller和我做到了。
我的初始设置是这样
application
--modules
----api
------config
------controller
------libraries
我一直得到与装载Rest_Controller一个错误,所以我试图移动REST_Controller和格式库的应用程序/库,似乎解决了负荷的问题,但现在我下面让每当我试着通过http://example.com/codeigniter/index.php/api/example/user/id/1/format/json
访问它的错误“错误而遇到
无法加载所请求的类:安全”
我期待的输出为“{” ID“:1,”名“:”有的人“‘电子邮件’:‘[email protected]’,‘事实’:‘爱游泳’}”
我错过了什么?是否有可能将REST_Controller和Format库保留在api模块下?如果是这样,怎么样?
我可以问我在哪里可以看到如何设置休息HMVC?谢谢 – 2016-04-19 08:54:40