a basic crud application with zend amf flex 4
DESCRIPTION
Come see how to seamlessly integrate Flex and PHP using Zend Framework. You'll see how to set up a basic application that lets you call PHP methods right from your Flex application and ways to test and optimize the connection between the two languages. You'll also see the powerful features that Flex can add to a PHP backend.TRANSCRIPT
Copyright © 2007, Zend Technologies Inc.
A BASIC CRUD APPLICATION WITH ZEND AMF FLEX 4Kevin SchroederTechnology Evangelist
A bit about me
PHP Developer
Java Developer
System Administrator
Wrote a book
Wrote another book
Won’t write another book
Write music instead
Previous: NA Technical Consultant for Zend Technologies
Current: Technology εὐαγγέλιον for Zend
email: [email protected]
• There is LOTS I could talk about• Will focus on
What does a PHP/Flex integration point look like? How do you test the integration point? How do you build the Flex/Flash portion? How do you debug?
Available in blog form at www.eschrade.com
http://www.eschrade.com/page/flash-developers-building-your-remote-endpoint-4be9d475 to be precise
Interacting with Flex
Architectural Considerations
Key thought concerning your PHP backend“Just because you can doesn’t mean you should”
Think about re-useTest outside of Flash
Consider abstraction to make your life easier
Demo Application Layers
The PHP Side of our demo
• Uses Zend Framework Uses Zend_Db for database access Uses Zend_Application for configuration/bootstrapping
• Integration point is gateway.php Defined by Flash Builder One line of code added for the bootstrap Integration classes are defined in the /services directory
• CensusService class is tested using PHPUnit
Agenda
• Examine the DB• Create a Flex project and example service• Examine the PHP model layer• Overwrite the example service• Examine the Unit Tests• Build the Flex components• Attach the Flex components to the service• Look at debugging
Where to go from here
Zend Studio - http://www.zend.com/en/products/studio/Zend Framework – http://framework.zend.com/
Follow us! Zend Technologies
http://twitter.com/zend
http://twitter.com/kpschrade (me!)
www.zend.comwww.eschrade.com