September 2010
S M T W T F S
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 1 2

Striped tables with Zend_View_Helper

I am currently working quite a lot with the Zend PHP Framework. I have grown to really like ZF (Zend Framework). While it does have a rather steep learning curve it is architected very neatly and offers lots of functionality for free.

I was recently constructing dynamic tables and wanted to give every other row a different class. Rather than clutter my view with logic to do this, I decided to create a custom view helper. I decided to make the view helper generic so it can be used to switch between two pieces of content each time it is called. This would mean I could use it for other things where alternating content is also needed.

Annoyances with PHP

Writing PHP is a daily occurrence for myself in both studies and for my day job. In fact, thinking about it, I probably write more PHP than I do English - yikes! In this article, I will explain a sample of the issues I encounter with PHP on a daily basis and wish were different. However, I must say that I am not saying I don’t like PHP, in fact its my language of choice for most tasks due to convenience, simplicity and familiarity.

Getting started with security in PHP

This article aims to introduce you to security in PHP. During my daily Job I encounter small scripts and even full systems that have some form of security vulnerability. The main vulnerabilities I find are SQL injection and Cross Site Scripting.

Page 1 of 2 pages  1 2 >