676
edits
No edit summary Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 57: | Line 57: | ||
* Rename the copy as '''pdf_my_template.modules.php''' | * Rename the copy as '''pdf_my_template.modules.php''' | ||
* Edit and make the following changes in the code: | * Edit and make the following changes in the code: | ||
# Rename 'class pdf_crabe' to 'class pdf_my_template' | # Rename '''class pdf_crabe''' to '''class pdf_my_template''' | ||
# Rename constant '$this->name = "crabe";' to '$this->name = "my_template"; | # Rename constant '''$this->name = "crabe";''' to '$this->name = "my_template"; | ||
# Save file. Now the template will be available in the list of models in Dolibarr. | # Save file. Now the template will be available in the list of models in Dolibarr. | ||
# Test this model | # Test this model before going further ... | ||
edits