Here is a link to the presentation slides for the session I gave @ Zend’s Uncon. Thanks for all who attended and your questions and feedback!
Tonight, I am speaking on two topics: An Introduction to Zend Framework and using AMF over HTTP with Zend_AMF. I have included my notes and source code:
Summary:
The Zend Framework (ZF) has become the standard for building enterprise applications and web services in PHP. In this session, you will gain an understanding of what the Zend Framework offers. I will cover the fundamentals of creating web services using ZF and connecting a Flex application to those services using REST and Adobe’s Zend_AMF component.
I will also be covering some common Design Patterns as part of the presentation and how ZF implements them (MVC, Front Controller), bootstrapping, etc. You should come out of this not only with an intro to ZF but also how
these design patterns are used on the server and where Flex fits into it all.
One note: This includes the source I have blogged about in previous articles as well as an ActionScript Project source as well. Many of you have asked for a sample of this. I hope this helps. I look forward to seeing you tonight!
In the previous article, we looked at how PHP can deliver AMF to Flash with traditional HTTP protocols. Now we are going to look at how Flash can pass AMF data to PHP. Delivering AMF from Flash is just as simple as consuming it from PHP. In fact, it uses practically the same code.
Part 2 – “Creating a Virtual Development Environment”
In the previous article to this series, we got our Ubuntu server appliance up and running. We can also access it directly through our VMWare client. In this article, we will look at how to connect to our VM through SSH in order to run commands from a Telnet client, as well as FTP into our server. (more…)
Ever want to communicate to today’s most popular instant messengers, such as Google Talk, MSN Messenger, and Yahoo Messenger. Now you can! Seesmic-AS3-XMPP is an all new XMPP 1.0 compliant library for Flash 9+. It features an easy to understand event-driven style, starttls support (using a modified Hurlant TLS lib), and a plugin based architecture for easy extending. (more…)
Flash Remoting is great and I have used it for years, but there have always been a few things that have bothered me. Recently, I have discovered how to delivery AMF objects between the Flash Player and the server without having to establish a gateway or creating a Remoting connection. This article talks about how to deliver content with the benefits of Remoting over traditional HTTP requests. (more…)
Part 1 of “Creating a Virtual Development Environment”
In this small series, I am going to show you how to setup a virtual machine. We are going to setup an Ubuntu LTS Server that runs your typical LAMP (Linux, Apache, MySQL, PHP) configuration. I will also discuss additional tools I use for development. I will finish by setting up a Virtual Host that you can access through the desktop. This article will focus on setting up Ubuntu as a virtual machine. (more…)
The Zend Framework provides the ability to use Basic or Digest authentication using an Http file adapter. My friend Jac Wright (jacwright.com) and I have created a set of classes that allow you to perform this same authentication using a database table. The classes are actually really easy to use. (more…)
When creating classes in PHP5, I like to implement what is known as “Method Chaining.” It is the practice of chaining methods onto the back of one another like so:
$object->methodA()->methodB()->methodC();
When would you use this?
It is best practice to use method chaining when you have a series of properties that need to be set. This of course it completely optional but it produces nicer looking code as a result. Anytime I am creating getter and setter functions in my classes I set them up so they can be daisy chained one after the other. Other industries such as Java have been doing this for years in their implementation, and now PHP can do it to (as of PHP5). (more…)
If you use Zend Studio as your IDE, here is a tip I have found useful. Zend Studio is pretty good at auto completion, but there are times when the property reference is too ambiguous. You can help the IDE with a few simple comments in the right places (more…)