Changes

Jump to navigation Jump to search
m
Line 32: Line 32:  
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.
 
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.
   −
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:
   −
We recommend to use the method suggested in the examples in htdocs/modulebuilder/*.php files and presented here to load the *main.inc.php*, but you can replace the *main.inc.php* with *master.inc.php* for command line scripts.
+
We recommend to use the method suggested in the examples in htdocs/modulebuilder/*.php files and presented here to load the '''main.inc.php''', but you can replace the '''main.inc.php''' with '''master.inc.php''' for command line scripts.
 
This portion of code is known to work in all situations (using Apache, Nginx, IIS, using virtual host of sub-directories, after a proxy redirect or not, if the web root is auto-detected or forced by conf file, and any combination of this).
 
This portion of code is known to work in all situations (using Apache, Nginx, IIS, using virtual host of sub-directories, after a proxy redirect or not, if the web root is auto-detected or forced by conf file, and any combination of this).
  

Navigation menu