amf

TwitterFacebook
Get flash to fully experience Pearltrees
amfphp

The latest PHP library to add support for AMF and remoting is Zend Framework. The preview prelease version 1.7 offers a new component Zend_AMF that lets you create Flex applications that talk to PHP backends using remoting. Since I am a big fan of remoting as a way to get data to your Flex/AIR clients, I wanted to add a short post explaining how to use it. http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/

Flex and PHP: remoting with Zend AMF : Mihai CORLAN

Zend_Amf | Wade Arnold

http://wadearnold.com/blog/category/flash/zend_amf I started working on a project this week that extensively uses ArrayCollection’s and I found that ZendAmf could use a couple additions in order to have some utilities for working with ArrayCollections in PHP. The new feature relies heavily on PHP’s SPL and specifically Countable , ArrayAccess , and IteratorAggregate all of which require PHP 5.2.3 or greater. The following file can be added to your Zend Amf project to play with some of these features. Please let me know if there is anything else that I should add before it is added in the next release. Please post feedback to the blog or directly to the Zend Framework feature request. $this->_data[] = array('foo' => 'foo1', 'bar' => 'bar1'); $this->_data[] = array('foo' => 'foo2', 'bar' => 'bar2'); $this->_arrayCollection = new Zend_Amf_Value_Messaging_ArrayCollectionTwo($this->_data);
There are many examples on the web how to use Zend_Amf as a standalone component but couldn’t find one that actually shows how you can run it with the rest of the Zend Framework . Main benefit of running it in a way I will demonstrate in this post is that requests to AMF service classes are automatically bootstrapped with configuration, database initialization and other Zend components. Here is how I use Zend_Amf with the full framework. First we have to setup whole environment as it is in ZendFrameworkQuickstart (there is also already preconfigured archive available there). It will give you above folders structure; don’t forget about .htaccess file (as described in the quickstart tutorial)!!!

Zend_Amf with full Zend Framework at Space of Flex/AIR technolog

http://www.riaspace.com/2009/01/zend_amf-with-full-zend-framework/