PHP Coding Standards (3) – Coding Style

1. PHP code must always be delimited by the full-form, standard PHP tags. Short tags are only allowed within view scripts. For example : [codesyntax lang="php"] <?php // Php code here ?> [/codesyntax]… Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

Singleton Pattern in Zend Framework

The singleton provides a very good solution to the problem when you need an object to be handled as always single and global. Singleton, which may usually merge up with other patterns (e.g. registry, … Continue reading
Posted in Design Patterns| Tagged , | Leave a comment

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