Pragmatism in today's world

Cure for BSS announced!

Cal Evans has announced a cure for Blank Stare Syndrome! You know the problem: you're in a conversation and someone mentions something about a new technology that you haven't heard of. Your eyes glaze and you have that Blank Stare… Sixty Second Tech is the solution. Once a week, it will deliver a short podcast (presumably about 60 seconds long!) that explains one technological concept per episode that you (or your less-techy friends!) need to… continue reading.

Simple Zend_Form Example

Following on from the Simple Zend_Layout Example, Zend_Form is now in the trunk, so here's a super simple, complete example that shows it in action: (clearly the form is unstyled :) You can construct a Zend_Form directly from a config file or can build it in code. This example builds it in code. Setting up This example uses the same basic skeleton as the Zend_Layout code with the addition of a forms directory: As you… continue reading.

A View Stream with Zend_View

One of my biggest issues with using PHP as the templating engine in View scripts is that the easiest way to echo a variable is the least secure. Consider: <?= $this->var ?> Perfectly legal, dead easy to understand, but doesn't escape $var which is what you want more often than not. To resolve this you need something like: <?= $this->escape($this->var) ?> But who remembers to do that?! I don't and I have short-open-tags turned off… continue reading.