Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用Codeigniter for Backbone.js处理服务器端同步_Php_Codeigniter_Rest_Backbone.js - Fatal编程技术网

Php 使用Codeigniter for Backbone.js处理服务器端同步

Php 使用Codeigniter for Backbone.js处理服务器端同步,php,codeigniter,rest,backbone.js,Php,Codeigniter,Rest,Backbone.js,如何在PHP Codeigniter端处理主干同步akaRESTful JSON请求 手册中有一个Ruby示例,但我不知道Ruby,也许有人能翻译一下 def update account = Account.find params[:id] account.update_attributes params render :json => account end 我个人没有用过,但你可能想看看菲尔·斯特金的

如何在PHP Codeigniter端处理主干同步aka
RESTful JSON请求

手册中有一个Ruby示例,但我不知道Ruby,也许有人能翻译一下

def update
  account = Account.find params[:id]
  account.update_attributes params
  render :json => account
end

我个人没有用过,但你可能想看看菲尔·斯特金的