Small Hiatus for Zendcasts

May 14th, 2010

Hello dear listeners!

Every week (or usually 10 days) I try and put up new and fresh content about the Zend Framework, however as of late, work with my clients has taken precedence. I value every one of your comments and forum posts and have no interest in folding the site or letting it grow stale. Like last year around this time though, I’m going to be taking a small break from Zendcasts for the next month. Thanks to all of you for your contributions, I know that your feedback has helped me become a better developer.

Jon Lebensold

Introducing Zend_Acl

June 21st, 2009

There’s been a lot of talk on Twitter about doing some videos about Zend_Acl, so by popular demand, here’s part 1 of a 2 part series about Zend_Acl.

I’m going to do this with the unit testing framework we setup in the last video tutorial so that I can focus on the meat of Zend_Acl and its power.

If you don’t have unit testing setup locally, feel free to grab the source here, or a zipped version of the project.

 

Many to Many with Zend_Db and Zend_Form

May 13th, 2009

Exposing many-to-many in a practical application took a little more time and effort than I had anticipated. With that in mind, I to use this opportunity to explore how Zend_Form, Zend_Controller and Zend_Db could be integrated. This is the first in a two part set looking at our data model.

By the end of the second video, you should have a project that explores the following concepts with Zend_Db:

  • A user has many tasks (many-to-many)
  • A task has many users (many-to-many)
  • A user has one contact type (one-to-many)
  • A contact type has many users (many-to-one)

Unfortunately, this only gets through setting up the database, CRUD with Tasks and setting up the Many-to-Many classes in Zend_Db. The next video will cover how we can write a Zend_Form that will map the associations between the users and tasks. Enjoy!

If you can’t wait till the next video, grab the code on google code and play with it firsthand.

 

Writing a REST Web Service and Client With Zend_Controller

April 2nd, 2009

so here’s my makeup video for last week’s absence. It’s a little on the long end (nearing 40 mintues), however in my defense, I’m trying to cover a lot of ground. The video covers how you can build a very basic JSON web service with some private key authentication. I think that I muddled through the description, so I invite you to look at the Wikipedia entry on private / public key cryptography.

I start by producing a simple Business Object for countries, which then becomes a web service. With some credentials for authentication stored in Zend_Config_Ini, I go through the motions of writing a wrapper around Zend_HttpClient for handling requests with our home-grown country list web service. This approach was adapted from a web service I’ve been working on for a client recently, that I’ve found light and easy to write for RESTful calls. Following along with the source code might also be helpful. Grab yourself a copy of the source code here.

 
Desktop RSS feed iPhone + iPod