Changes

m
Line 373: Line 373:     
== Skeleton code ==
 
== Skeleton code ==
To standardize the code, and to speed up the development of new components in Dolibarr, you'll find 4 skeletons fully prepared in the directory '''dev/skeletons'''.
+
To standardize the code, and to speed up the development of new components in Dolibarr, you'll find skeletons of files fully prepared in the directory '''htdocs/modulebuilder/templates/'''.
   −
* 1 that serves as an example of the module description: '''myModule.class.php'''
+
For example:
* 1 that serves as an example of code for creating a new class: '''skeleton_class.class.php'''
+
* 1file that serves as an example of the module description: '''myModule.class.php'''
* 1 that serves as an example of code for creating a new page: '''skeleton_page.php'''
+
* 1 file that serves as an example of code for creating a new class: '''skeleton_class.class.php'''
* 1 that serves as an example of code for creating a script for executing command lines: '''skeleton_script.php'''
+
* 1 file that serves as an example of code for creating a new page: '''skeleton_page.php'''
 +
* 1 file that serves as an example of code for creating a script for executing command lines: '''skeleton_script.php'''
 +
...
    
Use it as an example.
 
Use it as an example.
Note that the skeletons are also used by the PHP code generator, which is described in the development chapter of Dolibarr modules, to speed up your development.
+
Note that the skeletons are also used by the PHP Code generator ([[Module ModuleBuilder]]), which is described in the development chapter of Dolibarr modules, to speed up your development.
    
== Dates and Timezones ==
 
== Dates and Timezones ==