30,997
edits
Tag: 2017 source edit |
m (→Skeleton code) Tag: 2017 source edit |
||
| 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 | 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/'''. | ||
* | 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 | 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 == | ||