31,014
edits
| Line 71: | Line 71: | ||
* No dead code (code never used) into Dolibarr core code (code used by external modules only must be included into external modules). | * No dead code (code never used) into Dolibarr core code (code used by external modules only must be included into external modules). | ||
* Use include_once for anything with functions or class definitions in it, use include for template-style php with files containing a mix of HTML and PHP | * Use "include_once" for anything with functions or class definitions in it (so *.class.php and *.lib.php files), use "include" for template-style php with files containing a mix of HTML and PHP (so *.inc.php and *.tpl.php files). | ||
= SQL rules = | = SQL rules = | ||