Line 8:
Line 8:
To create these directories, you can use the function
To create these directories, you can use the function
<source lang="php">
<source lang="php">
−
dol_mkdir(DOL_DATA_ROOT.'/monmodule');
+
dol_mkdir(DOL_DATA_ROOT.'/mymodule');
</source>
</source>
To generate these files on the Dolibarr model, create the following files:
To generate these files on the Dolibarr model, create the following files:
−
# the card where to place the "cartouche" (posting) allowing the user to generate a new document and to consult the existing documents.
+
# the page where to place the "cartouche" (posting) allowing the user to generate a new document and to consult the existing documents.
−
# ''htdocs/includes/modules/mod [standard of document] .class.php'' if this file wouldn't exist already
+
# ''htdocs/core/modules/mod [standard of document] .class.php'' if this file wouldn't exist already
−
# ''htdocs/includes/modules/[standard of document] /module_ [standard] .php'' which will contain the definition of the class of generation
+
# ''htdocs/core/modules/[standard of document] /module_ [standard] .php'' which will contain the definition of the class of generation
−
# ''htdocs/includes/modules/[standard of document] /pdf_ [model] _ [standard] .modules.php'' which will contain the model of generation of the document
+
# ''htdocs/core/modules/[standard of document] /pdf_ [model] _ [standard] .modules.php'' which will contain the model of generation of the document
# ''htdocs/document.php'' which contains the procedure of delivery of the files once created (and their suppression) - it is also necessary to add to it the type of document and the corresponding directory
# ''htdocs/document.php'' which contains the procedure of delivery of the files once created (and their suppression) - it is also necessary to add to it the type of document and the corresponding directory
# The class(es) which contain the data to be posted (classes product.class.php or facture.class.php, or others, according to the document to be generated)
# The class(es) which contain the data to be posted (classes product.class.php or facture.class.php, or others, according to the document to be generated)