- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我总是遇到这个错误。
{"status":false,"error":"Unknown method."}
但从我这边来看,所有语法都是正确的。因为在浏览器上一切正常,但在设备上集成相同的 URL 会出现“未知方法错误”。
我正在使用这种“获取”方法。示例网址
SITEURL/api/login/test?req_type=custom
我在集成时是否遗漏了什么?也许是一个设置?我刚刚包含了库和 rest 配置文件。
最佳答案
我认为你的问题是 Controller 的名称与方法的名称相同尝试进行测试:
如果您的 Controller 名称是:
class Test extends REST_Controller{
//your method name is different from the name of controller class
public function testget_get(){
echo $this->response(array('test'=> 'test'), 200);
}
}
我在 hmvc 结构上遇到过这个问题。
关于php - Phil Sturgeon 的 REST API 总是返回 : status:0, 错误:未知方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19517714/
尽管 PyroCMS 是一个很好用的 CMS,我强烈推荐任何人在情况允许时使用它。 但是,我的情况需要一个自定义 CMS,它只是有很多差异,我正在使用我看到的一些免费使用的库来开发我的 CMS。我目前
我正在创建休息服务。我已经完成了所有需要的方法,我想做的是一些授权。我已经创建了存储 api key 的表,我在每个方法中加载它们,并且效果很好。我现在需要的是做一些在每个方法之前调用的 before
我正在尝试使用 Phil Sturgeon's CodeIgniter Template library ,但我无法让它更改我的页面。我阅读了文档,按照那里的步骤操作, Download Copy t
尝试使用,但不明白我应该怎么做才能启用它。 尝试了旧样式,但对我不起作用: protected void Application_Start(object sender, EventArgs e) {
我尝试使用 Phil Sturgeon (Codeigniter RestServer) 的出色工作来为我的服务提供服务。 我计划使用此工作流程: client --> client connect
最近下载了Phil Strugeon REST server对于 CodeIgniter。 我查看了源代码,当我进入 Digest 身份验证时,我看到了以下代码: if ($this->input->
正如标题所示,我正在使用 Codeigniter 和 phil sturgeon - codeigniter-restserver 框架。 我已按照 Nettus 上的教程进行操作一切正常,除了发送删
我正在将经典的 asp 应用程序转换为 C#,并希望能够解密最初在经典 asp 中加密的 c# 中的字符串。经典的 asp 代码是 here ,C#代码是here .我面临的问题是 asp 与 C#
我是 CodeIgniter 的新手。我正在使用 Phil Sturgeon 的 RestServer 和 RestClient。我一直试图在我的 CodeIgniter RestClient Con
我正在使用 Phil Sturgeon 的 REST 服务器、CI3 和 POSTMAN 进行调试。我发送了包含以下信息的 PUT,但是,我没有收到预期的错误消息。 这是我的 form_validat
我在 API 中通过 REST 客户端发送的 PUT 和 POST 请求之间存在差异。它是在 CodeIgniter 中使用 Phil Sturgeon 的 REST 服务器实现的。 function
我总是遇到这个错误。 {"status":false,"error":"Unknown method."} 但从我这边来看,所有语法都是正确的。因为在浏览器上一切正常,但在设备上集成相
我的 backbone.js当我尝试将模型保存到位于另一个主机/URL 上的 restful Web 服务时,应用程序抛出 HTTP OPTIONS not found 错误。 根据我的研究,我从中收
我是一名优秀的程序员,十分优秀!