A Reusable Zend Framework Content Module

As a sort of proof of concept for the ideas I discussed in my previous post, I've put together the first draft of what could become a very helpful reusable module. With this post, I'd like to introduce my new Zend Framework "content" module, which provides several abstract components for a reusable model layer, along with a concrete framework for building a variety of content types sharing a common database-based persistence layer.

Categories: 

Design Choices for Zend_Auth_Adapter_Flexible

Well, I’ve finally gone ahead and posted a Zend Framework component proposal: Zend_Auth_Adapter_Flexible. It’s the same idea I wrote up in my last post, but with a few key modifications; I thought I’d take a minute or two to discuss those modifications here.

Categories: 

Flexible User Authentication with Zend_Auth

The Zend_Auth component of the Zend Framework can really help simplify the process of developing a custom authentication system for your next web application. The basic process is already very well-documented, so let's try something a bit more complex.

Categories: 

Output Transformation in a Zend Framework Model Layer

A few weeks back, Matthew Weier-O'Phinney wrote a very helpful discussion of model layer infrastructure using various components of the Zend Framework. I especially appreciated his advice on using Zend_Form as an input filter inside the model class itself; it provides a very clean way to keep validation and filtering logic properly encapsulated.

Categories: 

Spades in PHP: Play-by-Play versus Play-at-Once

Earlier this week I posted about my PHP spades project for automated testing of bidding and playing strategies. In that post I highlighted my use of the strategy design pattern to make it easy to test a variety of approaches to the game; however, I didn't provide much structural detail. Lucky you, as it turns out, because the structure I was using at the time was far from ideal.

My overall idea for running the tests was to be able to use a very thin controller script, something along these lines:

Categories: 

Looks like Google's testing something...

Ran a search or two this morning, and discovered to my dismay that my computer was in danger from the entire internet; every result I saw in every search I tried contained this ominous warning about how the site "may damage [my] computer":

Searching for chickens (or anything else) may harm your computer.

Searching for chickens (or anything else) may harm your computer.

Categories: 

My Home NAS, A Performance Sidenote

Still more to go on my home NAS series, but I thought I'd take a moment to point out a recently-published article that benchmarks the performance of the MSI Wind box against several other DIY and off-the-shelf NAS units. The author ends with the conclusion that DIY NAS boxes based on Intel Atom chipsets (and also the VIA C7) typically get twice the throughput of their store-bought counterparts.

Categories: