zen of coding

Dealing with dates… reporting, etc.

Once in a while I run into a situation, where some sort of reporting is required for an application… (It happens.) An example?.. We need to get a list of all active users in the DB. Obviously CakePHP makes it overly easy for us. However, it also happens, that once[…]

Read More »

Observer Pattern the CakePHP way

First, I’d like to thank the original author of this article for giving me inspiration, food for thought and a solid code base to further dwell on this idea. http://bakery.cakephp.org/articles/view/observable-models So what is the Observer Pattern anyway, and why is it a good thing to implement? Many resources will tell[…]

Read More »

Save now, sanitize later…

Good discussion came up on IRC today, regarding sanitizing of the data. I’d like to clear up a little confusion and hopefully set the record straight on the sanitizing of data. First, we need to keep in mind that there are two types of “evil” data, which most web developers[…]

Read More »
%d bloggers like this: