Drowned World

Same kind of moon, same kind of jungle.

Category: Zend Framework

Twitter Lists

Twitter have introduced lists as a way to organise who you follow.  I’ve started building a PHP list that follows interesting sites and prominent members of the community. Check it out here:
http://twitter.com/teengenerate/php

Zend Framework FlashMessenger

For the uninitiated in the dark art of Zend Framework, the flashMessenger action helper is a session based message system that allows you to store and retrieve messages while redirecting and forwarding to different pages. A quick browse through the source code reveals that the flash messenger does nothing more complicated than adding a few [...]

Zend_Db_Expr and how to use it

One thing that comes up a lot when updating a database is incrementing values. You might have a value stored in a column and you want to increment it by one or more but you don’t want to query the record first. This adds additional overhead to the server by running an extra unnecessary [...]

Zend Form country lists

One task that comes up time and time again is creating a dropdown form element that is populated by a list of countries. In the past I solved this problem by keeping an key/value array of countries and their codes and loaded this in via a loop. Not any more. By using Zend_Locale and Zend_Form [...]

htmlentities and character encoding

I recently came across a bug in some code I’d written where the input filters were doing something strange on certain peoples computers and truncating the inputted text when hitting a single quote. After a bit of googling I realised that the htmlentities filter I was using wasn’t set to the right character encoding. Everything [...]

First impressions of Symfony PHP Framework

In the last few years, every project I’ve worked on has run on top of Zend Framework or a custom in-house framework. Most of my work involves extending existing applications and that’s the major reason I haven’t looked into any of the alternative PHP frameworks out there. In the last few months there have been [...]