Factory Pattern in Zend Framework

The factory pattern is a simple but powerful design pattern which makes it very easy to manage and maintain plenty of classes. The factory pattern, as it means, is using some material to provide produ… Continue reading
Posted in Design Patterns| Tagged , | 1 Comment

PHP Coding Standards (2) – Naming Conventions

1. The Zend Framework employs a class naming convention whereby the names of the classes directly map to the directories in which they are stored. Based on PEAR Coding Standards , we can easily find t… Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

Create Captcha Image with Zend_Dojo

Users usually see the captcha and are asked to type the same in order to prove their truth when they are just going to take the registration. Zend_Captcha in Zend Framework provides this kind of funct… Continue reading
Posted in Zend Framework| Tagged , | Leave a comment

Custom View Helper in Zend Framework

Zend Framework which is built on MVC design pattern has also provided lots of it's accessories. The view helper is one of them. The view helper, as it named, is to help the view to complete it's work.… Continue reading
Posted in Zend Framework| Tagged | Leave a comment

Builder Pattern in Zend Framework

When we want to implement one thing in different ways, we think of builder design pattern. It's like a building, when, design has been done, though handled by different engineers directing different c… Continue reading
Posted in Design Patterns| Tagged , | Leave a comment

PHP Coding Standards (1) – File Formatting

1. For PHP files the closing tag (" ?> ") is to be omitted. It is not required by PHP, and omitting it prevents trailing whitespace from being accidentally injected into the output. In fact the proble… Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

Practise dojox.grid.DataGrid with Zend_Dojo

Zend_Dojo was released together with Zend Framework 1.6 as well as Dojo toolkit package . We can make a good experience of the client-side with powerful Dojo components through a simple API provided b… Continue reading
Posted in Zend Framework| Tagged , | Leave a comment

Multi-modules and multi-templates application for Zend_Application

At the very beginning I need to introduced everybody of Zend_Application before doing anything. As one of the most important big changes in Zend Framework 1.8, the Zend_Application has introduce two n… Continue reading
Posted in Zend Framework| Tagged , | 2 Comments

Iterator Pattern in Zend Framework

The Iterator design pattern has provided a common mechanism for accessing collections. It allow user to traversal, access, and manipulate data sets, such as array, files, RSS feeds and database result… Continue reading
Posted in Design Patterns| Tagged , | 1 Comment

Strategy Pattern in Zend Framework

In the traditional process-oriented languages are often filled with a lot of if/else statements. This situation has easily made the logic of chaos and trouble to amend. The strategy design pattern was… Continue reading
Posted in Design Patterns| Tagged , | Leave a comment