Zend coding conventions

It is important to following coding conventions of any software you are working with. Coding conventions should be treated like coding guidelines. This helps in make the code more readable.

  • use camel case
  • class name begin with Zend_ if it is part of Zend Framework itself
  • declare variable as public, private, protected instead of using var
  • do not use short form
  • do not use call-time pass-by-reference
  • no preceding or trailing spaces