How it works: Adobe Flex & PHP (Zend Framework)
Posted on February 2nd, 2009, by Cristian in Flash, Flex, AIROne of my Flex beginner question was “How do I connect Flex with PHP” or any other language and pull the data from a database. I most interested in PHP and I tried with CakePhp AMF plugin but no luck. Then I tried to follow Zend Framework AMF example from their book but the same.
Here is a good video tutorial on how to make Adobe Flex to work with PHP true XML and AMF (Action Message Format). You will learn how Flex WebServices and RemoteOjects work with Zend Framework. For me this tutorial has answer to many questions and I recommend you to have a look at it if you are Flex beginner like me.
What issues did you have in getting Zend AMF to work
I had not issue. Just follow the example and understand how it works.
Great… I scan the web looking for feedback. Glad it worked for you.
Take a look at the X2O framework – lets you connect Flex to a remote database without any server side programming: http://www.x2oframework.com.
Here’s an interesting comparison between Zend / X2O:
http://blog.x2oframework.com/2009/02/framework-battles-for-flash-platform.html
Thanks for the info. I will take a look and see how it works and what performance does it have.
I also had problems with cakeAmf plugin. After some debugging I decided to write my own plugin to intregrate the AMFPHP into the cakePHP 1.2. My plugin uses all amfphp features (including amf extension).
If you are interested, check out my article here:
http://carrotplant.com/en/blog/flex-remoting-with-cakephp-cpamf-plugin