在PHP Codeigniter端应该如何处理骨干同步(也称为RESTful JSON request
)?
手册中有一个Ruby的例子,但我不知道Ruby也许有人能翻译它?
def update
account = Account.find params[:id]
account.update_attributes params
render :json => account
end
http://documentcloud.github.com/backbone/#Sync
我个人还没有使用过它,但您可能想看看Phil Sturgeon的CodeIgniter RESTful服务器。