31,003
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 54: | Line 54: | ||
The first step is to create a file descriptor for the module. | The first step is to create a file descriptor for the module. | ||
*Create directory '''/htdocs/''mymodule''/core/modules'''. Then copy the file modMyModule.class.php from the directory '''htdocs/modulebuilder/template''' into this directory | *Create directory '''/htdocs/custom/''mymodule''/core/modules''' (for an external module) or '''/htdocs/''mymodule''/core/modules''' if you plan to have this module an official core module of Dolibarr. Then copy the file modMyModule.class.php from the directory '''htdocs/modulebuilder/template''' into this directory. Change the name of the file modMyModule.class.php to the name corresponding to the purpose of your module. Name of the file must start with initial 'mod' and end with .class.php (for example if you want to give the name 'NewName' to this file, then the name should be 'modNewName.class.php'). | ||
Next modify the contents of this file as follows: | Next modify the contents of this file as follows: | ||