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.

Content Management System issues

Lately I have been having somewhat of a battle with my own conflicting opinions about the various CMS-es available. By CMS I mean any system which allows you to manage and publish content (not necessarily web based). The sites I work with are usually informational based, providing information of some sort and not a web application type service sites such as Twitter.

Page 1 of 3 pages  1 2 3 >