Module development: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 23: Line 23:
* all "modMyModule" with a value which corresponds to the vocation of your module. This value must always start with 'mod'.
* all "modMyModule" with a value which corresponds to the vocation of your module. This value must always start with 'mod'.
* $this->numero = 10000 by a number of free module (Go to Home page -> System Information -> Dolibarr to know id the list of modules used).
* $this->numero = 10000 by a number of free module (Go to Home page -> System Information -> Dolibarr to know id the list of modules used).
* $this->const_name = 'MAIN_MODULE_MYMODULE' by $this-> const_name = 'MAIN_MODULE_XXX' where XXX must match the value chosen to replace MyModule and put in capitalized.
* $dir = DOL_DOCUMENT_ROOT.'/mysql/tables/mymodule/'; by $dir = DOL_DOCUMENT_ROOT.'/mysql/tables where xxxxxxxx is the name of your module (without spaces).
* Modify any other variables defined in the constructor (see comment in the code skeleton for their meaning).  
* Modify any other variables defined in the constructor (see comment in the code skeleton for their meaning).  
 
* Create directory /htdocs/monmodule/
Your file descriptor for your module is ready.
Your file descriptor for your module is ready.


Navigation menu