当前位置: 动力学知识库 > 问答 > 编程问答 >

codeigniter - REST API Code Igniter

问题描述:

I have a code igniter controller ," TEST " . and I want to access this controller in REST API.

When I include this controler file using " include_once(APPPATH.'/controllers/test.php'); " , everything works fine.

But Is this the only way to access the controller inside REST API? or is there any other way to do so?

网友答案:

I'm not fully sure what you're trying to do, but it looks like a rather unlogical approach.

Have a look at creating own libraries. The REST API should be easy to implement through there and it's much more logical.

分享给朋友:
您可能感兴趣的文章:
随机阅读: