1. Home
  2. Docs
  3. Simpods MVC
  4. Getting Started
  5. Coding Conventions

Coding Conventions

We try to follow the WordPress Coding Standards as closely as possible. Below are some of the conventions we stick to very closely:

  • Use underscores rather than camel case for all variables and function names

  • Use real tabs to indent, not spaces

  • No shorthand PHP, we try to make our code as easy to read as possible

  • Use useful variable names

Naming Conventions

We also aim to give all of our files useful names. For example:

  • Templates for pages are prepended with template-

  • Singles are prepended with single-

  • Modal classes are appended with .class.php

  • Ajax files in the ajax folder of plugins for Simpods prepend with ajax-

  • Controllers in the control folder of plugins for Simpods prepend with ctrl-