将emberjs> PHP与JSON数据 [英] Class to integrate emberjs <-> PHP with JSON data
本文介绍了将emberjs> PHP与JSON数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最新的描述:
我正在PHP中查找类,以便在标准中为emberjs生成JSON格式化并在emberjs中获取此数据。而另一方面,我想使用相同的JSON标准将数据从emberjs发送到PHP。
解决方案
其实你在看对于PHP相当于 ActiveModelSerializers 的PHP。
你看过 http://www.phpactiverecord.org/docs/ActiveRecord/Serialization ?
I am looking something like emberjs-data but for PHP?
Longest description: I am looking class in PHP to generate JSON for emberjs in standard format and get this data in emberjs. And with other side, i want send data from emberjs to PHP using the same JSON standard.
解决方案
In fact, you are looking for the PHP equivalent of ActiveModelSerializers.
Did you looked at http://www.phpactiverecord.org/docs/ActiveRecord/Serialization?
这篇关于将emberjs> PHP与JSON数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文