Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kevin Schroeder's Blog:
Authentication Using Zend_Amf
Jul 07, 2011 @ 14:39:47

Kevin Schroeder has a new post to his blog today showing how you can use the Zend_Amf component in your Flex+PHP application to authenticate users with the same authentication structure the rest of the application uses.

I forget why, but a few days ago I started doing some digging around with authentication in Zend_Amf_Server. I had figured that I would add an adapter to the Zend_Amf_Server::setAuth() method and that would be it. But I was wrong.

Zend_Auth is used to validate the login information that's passed along and the Zend_Acl checks to see if they have access. To make this work for a connection from Flex, you need to make an authentication adapter and add it (as well as a basic ACL) into your Zend_Amf_Server call.

tagged: zendamf zendacl zendauth authentication tutorial flex

Link:

Zend Developer Zone:
File uploads with Adobe Flex and Zend AMF
Oct 22, 2010 @ 17:25:07

On the Zend Developer Zone there's a post looking at uploading files in a Adobe Flex-based application that uses a slightly different than usual approach to uploading files through Zend_Amf.

Zend AMF is a PHP implementation of the AMF (Action Message Format) binary protocol within the Zend Framework. I had to implement a system to upload files that were a little different than what is typically used in Flash, so I built upon Zend AMF for my needs. Researching a little on the net, I found a solution that was simpler than I expected. Based on an article, I only had to make a few adjustments.

He shows a (brief) version of his setup - a gateway to be used as the endpoint for Flex to connect to, the VO properties and the class to handle the upload. On the Flex side, he includes the code to create the view and pass the upload off to the waiting PHP backend. If you want to see the full code, you can grab it here.

tagged: file upload adobe flex tutorial zendamf

Link:

TheTechLabs.com:
Integrate Flex Builder 3.0 & Php easily with the fresh ZendAMF
May 13, 2009 @ 16:18:00

On the TechLabs website there's a recent post looking at how to get Flex Builder 3.0 and PHP to work together via the Zend_AMF component of the Zend Framework.

In this article I will explain how to build a simple adobe flex application that communicates with php using remote objects calls to the new AMF php implementation supported by adobe and called ZendAMF. In my example I will use Adobe Flex Builder 3, ZendAMF and a Apache web server with php support and mysql server on windows. If you do not have any available server with php (at least) you will need to install one on your machine. It’s easy, nowadays you have many standalone installers that do everything, just look at the wampserver for example.

If you want to get started right away, you can download the source and get going. Otherwise, you can check out the rest of the tutorial to see how they build up their example. They show how to create the project, set up the Zend_Amf extension's configuration and creating the simple application that echos back a "hello world" sort of response based on a text field's entry.

tagged: flexbuilder zendframework zendamf tutorial integrate

Link:

Community News:
Adobe Seeks PHP Developers for Pre-Release Access on Flex Builder
Apr 06, 2009 @ 17:53:07

Andi Gutmans mentions a program Adobe is starting up concerning Flex and PHP and they're looking for some developers to get in on it.

In this upcoming version [of Flex Builder], a significant new set of features are being introduced to accelerate creation of data-centric applications with PHP on the server-side leveraging Zend Framework and Zend AMF. Prior to the public Beta later in the year, Adobe would like to invite a select group of PHP developers into a private pre-release program for Flex Builder.

The group would get a sneak peek at the upcoming features, work with the development team and help to make the product into something the community really can use. If you'd like to get in on the program, fill out this survey and they'll get in touch with you with more information.

tagged: adobe flex developers prerelease flexbuilder zendframework zendamf

Link:

Zend Developer Zone:
Get to know Flex and Zend_Amf
Mar 27, 2009 @ 14:35:46

In this recent article from the Zend Developer Zone Jack Herrington takes a look at the component of the Zend Framework that lets it talk directly to Flash and Flex applications - Zend_Amf.

Reading and posting to Extensible Markup Language (XML)–based services with Adobe Flex is easy. But what’s even easier is using Adobe’s Action Message Format (AMF) to send messages between the Flex client and the server. It’s as easy to use as a method call on an object. This article shows how to set up an AMF service [so you can use this method] on your PHP web server using the Zend Framework and Zend_Amf.

As his example application, he sets up a contacts database he'll pull information from and insert data into from his Flex form. You'll need to already be familiar with working in a Zend Framework instance before you get started - he dives right into the code. Screenshots and code for both the PHP and Flex sides of things are included

tagged: tutorial flex zendamf zendframework component

Link:

ProDevTips.com:
Zend Amf and class mapping with Flash CS3 / AS3
Mar 25, 2009 @ 18:09:19

On the ProDevTips.com site there's a new tutorial talking about mapping a class using the Zend_Amf component (of the Zend Framework) to map functionality with Flash.

Instead I’m mapping the variables explicitly in the Shockwave, I have no example of doing the reverse, ie sending an object from flash and populating. I’m however not going to use an ORM like Doctrine with the project I’m going to do here so that won’t really be a problem. The main thing is that we can easily populate AS objects.

They include both the Flash code - connecting the Flash application to the PHP gateway - and the PHP code to create a Zend_Amf object and handle the Flash request. In their example, they call a User class to locate a user record.

tagged: prodevtips flash zendframework zendamf tutorial

Link:

Zend Developer Zone:
Leveraging Zend Framework Components from Adobe Flash Platform Applications
Feb 26, 2009 @ 13:54:22

On the Zend Developer Zone today Richard Bates has posted his method for combining the Zend Framework with the Adobe Flash platform (Flex) to create richer and more powerful applications.

One of the most useful concepts in software development is the practice of creating modular, reusable code. As a developer, you’re likely familiar with the heartache of reinventing the wheel. Doing so is certainly sometimes necessary, but when it isn’t, you would be well served by using plug-and-play components. [...] And, as of version 1.7, Zend Framework includes an extension for native Adobe Action Message Format (AMF) communication between Adobe Flash Platform applications and PHP.

Using this AMF support, Richard shows how to create a sample Flex application that stores data into a backend database, validates that the user is "real" (via a CAPTCHA) and lets the organizer of the event know that new information has been added to the application. You can see the basic workflow here. There's plenty of screenshots, code and explanations to walk you through every step of the way.

tagged: zendframework component zendamf tutorial adobe flex platform

Link:

Alessandro Crugnola's Blog:
AMFPHP recent updates
Nov 13, 2008 @ 14:47:23

Alessandro Crugnola has posted an update on the future of the AMFPHP project (an interface between Adobe's Flex products and PHP) and how it relates to the work being done on the Zend Framework's Zend_Amf component.

But after the partnership between Zend and Adobe things started to change and amfphp started to move forward to the Zend Framework... and in fact many developers were afraid about the real future of amfphp. But, as Wade said, the amfphp core will remain separated from the framework implementation ( a framework which I will never use however ), in order to have a shared core and 2 different branches for the implementation.

He notes, though, that he might be being a bit skeptical, but doesn't see things working out in their favor and that Zend_Amf will "win out" over the AMFPHP project and get the larger share of the backing from the larger companies.

tagged: amfphp zendamf zendframework opensource project adobe backing

Link:

Manfred Weber's Blog:
PureMVC and Zend_AMF
Nov 12, 2008 @ 14:47:28

In this new post to his blog, Manfred Webber shares an example he's put together to combine the PureMVC framework with the Zend_Amf component of the Zend Framework.

Since PureMVC is my framework of choice I could not resist creating a simple demo connecting PureMVC to the new Zend_AMF.

The sample application just responds to a button click by displaying a message inside of a text container. You can download the source that includes both the Flex and PHP sides.

tagged: zendframework zendamf puremvc framework flex sample

Link:

PHPBuilder.com:
Remote objects and Zend_Amf
Nov 07, 2008 @ 19:40:48

On PHPBuilder.com Richard Bates has continued his series introducing the Zend_Amf component of the Zend Framework and how to get a sample project setup that uses it.

Last week we discussed the new Zend Framework extension and gave you a look inside its functionality. This week we take off where we ended last week, and delve into remote objects and Zend_Amf!

The tutorial walks you through the setup of a new project, the PHP code behind it and how to get the two talking back and forth through a RemoteObject. Screenshots and complete code are included.

tagged: remote object zendamf tutorial screenshot remoteobject

Link:


Trending Topics: