PHP Coding Standards (5) – Errors and Exceptions

1. The Zend Framework codebase must be E_STRICT compliant. Zend Framework code should not emit PHP warning (E_WARNING, E_USER_WARNING), notice (E_NOTICE, E_USER_NOTICE), or strict (E_STRICT) messages … Continue reading
Posted in Coding Standards| Tagged , | Leave a comment

Registry Pattern in Zend Framework

The registry has provided a mechanism which help you to store and maintain your objects within the application. It's aim at preventing improperly using the global objects by users. The registry usuall… Continue reading
Posted in Design Patterns| Tagged , | Leave a comment

PHP Coding Standards (4) – Inline Documentation

1. Docblocks start always with "/*" or "/**". The use of "#" is not allowed. The " //" is only allowed for comments within functions. For example : [codesyntax lang="php"] /** * Class docblock */ clas… Continue reading
Posted in Coding Standards| Tagged , | 1 Comment