a basic crud application with zend amf flex 4

9
Copyright © 2007, Zend Technologies Inc. A BASIC CRUD APPLICATION WITH ZEND AMF FLEX 4 Kevin Schroeder Technology Evangelist

Upload: kevin-schroeder

Post on 01-Sep-2014

3.493 views

Category:

Technology


1 download

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

Page 1: A Basic CRUD Application with Zend Amf Flex 4

Copyright © 2007, Zend Technologies Inc.

A BASIC CRUD APPLICATION WITH ZEND AMF FLEX 4Kevin SchroederTechnology Evangelist

Page 2: A Basic CRUD Application with Zend Amf Flex 4

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]

Page 3: A Basic CRUD Application with Zend Amf Flex 4

• 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

Page 4: A Basic CRUD Application with Zend Amf Flex 4

Interacting with Flex

Page 5: A Basic CRUD Application with Zend Amf Flex 4

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

Page 6: A Basic CRUD Application with Zend Amf Flex 4

Demo Application Layers

Page 7: A Basic CRUD Application with Zend Amf Flex 4

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

Page 8: A Basic CRUD Application with Zend Amf Flex 4

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

Page 9: A Basic CRUD Application with Zend Amf Flex 4

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