【发布时间】:2015-12-21 11:05:22
【问题描述】:
假设我的控制器名称是 Api_example,并且我扩展了 REST_Controller。 现在我的困惑是
public function user_get(){
//Some code..
}
public function user_post(){
//Some code..
}
现在,我无法理解该方法中的“用户”是什么。如果我访问user_get() 方法如localhost/api_example/user/get 或localhost/api_example/user/post 只是为了以json 格式显示一些array data。它不工作。
请帮帮我。
【问题讨论】:
标签: php codeigniter