About Features Downloads Getting Started Documentation Events Support GitHub

Site Tools


development:coding_standards

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
development:coding_standards [2020/07/30 14:09]
crhallberg [Templates]
development:coding_standards [2020/07/30 14:12] (current)
crhallberg [Templates]
Line 11: Line 11:
 ===== Templates ===== ===== Templates =====
  
-Templates are looser with their styles due to the difficult mix of conditional PHP, HTML, and inline JS. Here's a few guidelines to help write clearer templates.+Templates are difficult mix of conditional PHP, HTML, and inline JS. Here's a few guidelines to help write clearer templates.
  
   * 2 Space Indents   * 2 Space Indents
Line 21: Line 21:
   * Don't call Model methods from Views, perform this logic in the Controllers   * Don't call Model methods from Views, perform this logic in the Controllers
  
 +Many of these items and more are enforced and automatically corrected with [[https://​github.com/​FriendsOfPHP/​PHP-CS-Fixer|PHP-CS-fixer]].
 ===== CSS ===== ===== CSS =====
  
development/coding_standards.txt · Last modified: 2020/07/30 14:12 by crhallberg