304
edits
| Line 31: | Line 31: | ||
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 dev/skeletons into this directory '''htdocs/''mymodule''/core/modules'''. | * Create directory '''/htdocs/''mymodule''/core/modules'''. Then copy the file modMyModule.class.php from the directory dev/skeletons into this directory '''htdocs/''mymodule''/core/modules'''. | ||
Next | Next modify the contents of this file as follows: | ||
* Replace all "modMyModule" with a value which corresponds to the purpose of your module. This value must always start with 'mod' and contain only alpha characters. | * Replace all "modMyModule" with a value which corresponds to the purpose of your module. This value must always start with 'mod' and contain only alpha characters. | ||
* Change the number in: $this->numero = 100000 by a number that designates your module id. To avoid conflicts with other modules, you can consult tha page that lists already reserved id numbers: [[List of modules id|List of modules id]]. | * Change the number in: $this->numero = 100000 by a number that designates your module id. To avoid conflicts with other modules, you can consult tha page that lists already reserved id numbers: [[List of modules id|List of modules id]]. | ||
edits