问题描述:

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.

相关阅读:
Top