Accessibility
Ryan Stewart

Ryan Stewart

Adobe
blog.digitalbackcountry.com

Table of Contents

Created:
26 July 2010
User Level:
All
Products:
Flash Builder

Creating a basic CRUD application using Flex and PHP with Zend AMF

In Flash Builder 4 there are many new features that make it much easier to build Flex applications that work with data from a PHP back-end via a standard create, read, update, and delete (CRUD) setup. Sometimes, however it's helpful to start with the basics, so you can appreciate the new data-centric development features all that much more. This article takes you through setting up the PHP code on the server and configuring Zend AMF to work with your Flex application. Then it takes you through creating the code needed on the client side to both call service methods and handle responses from the server.

Note: Some of the best practices for using the RemoteObject class have changed from Flex 3 to Flex 4. This article uses Flex 4, so you may notice some differences if you're coming from a Flex 3 background.

Flash Builder 4

Sample files:

Prerequisite knowledge

Some knowledge of PHP and previous experience with Flex will be helpful.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

About the author

Ryan Stewart is a platform evangelist for Adobe and has been doing Flex development for almost five years after starting out as an Adobe ColdFusion developer. He focuses on Adobe's platform technologies, including Flex, Adobe AIR, and Flash Catalyst.