Changes

Jump to navigation Jump to search
m
Line 25: Line 25:  
{{TemplateModuleTreeSimple}}
 
{{TemplateModuleTreeSimple}}
   −
=== Inclusion of main or master files ===  
+
=== Custom directory management - Inclusion of main or master files ===  
 +
 
 +
An external module called '''mymodule''' can be installed into '''htdocs/custom/mymodule''' (the default) as well as in '''htdocs/mymodule'''. It must works in both cases. Because all modules must work correctly when they are installed into root directory or into a personalized custom subdirectory.
   −
Because all modules must work correctly when they are installed into root directory or into a personalized custom subdirectory.
   
For this reason, when you try to load the Dolibarr environment by including the *main.inc.php* or *master.inc.php* file, you must include 2 ways to include them:
 
For this reason, when you try to load the Dolibarr environment by including the *main.inc.php* or *master.inc.php* file, you must include 2 ways to include them:
  

Navigation menu