-
Notifications
You must be signed in to change notification settings - Fork 673
Code Style Guide: PHP
unruthless edited this page Sep 13, 2010
·
20 revisions
This is the Code Style guide for PHP. See the main Code Style Guide page for other languages.
To start, assume we’re using the Drupal PHP coding style unless otherwise noted here.
Always use <?php ?> to delimit PHP code, not the shorthand, <? ?>, as this is the most used and supported across PHP setups and the one PHP will continue supporting in the future.
Thinktank uses PHPDocumentor to ease maintenance.. When writing documentation, please use PHPDocumentor’s syntax.
ThinkTank implements the Model-View-Controller design pattern. All new PHP code should follow suit. Read more about ThinkTank’s MVC implementation.