439
edits
| Line 65: | Line 65: | ||
</source> | </source> | ||
Note: NEVER use a relative path like this: require '../class/myclass.php'; - your include won't work depending on where resides the executed script! | Note: NEVER use a relative path like this: require '../class/myclass.php'; - your include won't work depending on where resides the executed script! Also, your module won't work with both the old main root specification and the new /custom/ specification. | ||
* The inclusion of a class dedicated to the module, without knowing from where the file will be called, is done using a function Dolibarr; | * The inclusion of a class dedicated to the module, without knowing from where the file will be called, is done using a function Dolibarr; | ||
edits