Next Chapter: Data Model for PostgreSQL 9.4

Coding Standards in CakePHP

2019-05-13 15:30:49.275018+00

Code conventions are important to programmers for various reasons:

  • 40%–80% of the lifetime cost of software goes to maintenance. Hardly any software is maintained for its whole life by the original author.
  • Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly.

For this book we will stick to the standards of Here is an overview of theses conventions in brief

Four Spaces for Indentation

Control Structures

if ((expr_1) || (expr_2)) {
    // action_abc;
} elseif (!(expr_3) && (expr_4)) {
    // action_xyz;
} else {
    // default_action;
refer to

Tag: cakephp2

Previous Chapter: Requirements for the paywall book application

Next Chapter: Data Model for PostgreSQL 9.4