Zend Framework与Facebook Connect的集成 [英] Integration between Zend Framework and Facebook Connect

查看:120
本文介绍了Zend Framework与Facebook Connect的集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用zend框架开发一个网络应用程序,我想讨论在ZF项目中集成所有JS和FBML的最佳方式,任何人都有一些经验。
例如,这可能是每个控制器中的Facebook istante的一个很好的解决方案,前端控制器插件?

解决方案

p>由于JS和FBML是表示层的一部分,因此必须进入ViewHelpers。通过他们的API从FB获取数据将进入一个服务,像Zend_Service_Facebook。现在有一段时间对准备审核状态的两个组件的提案:




I'm developing a web app with zend framework and i'd like to discuss what is the best way to intergrate all the JS and FBML in a ZF project, anyone have some experience. For example, which may be a good solution for have the Facebook istante in every controllers, a front controller plugin?

解决方案

Since JS and FBML is part of the presentation layer, these would have to go into ViewHelpers. Fetching data from FB via their APIs would go into a service, like Zend_Service_Facebook. There is a proposal for both components in Ready for Review state for some time now:

这篇关于Zend Framework与Facebook Connect的集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆