Module development: Difference between revisions

Jump to navigation Jump to search
m
New boxes path
m (New boxes path)
Line 401: Line 401:
=== Define your box ===
=== Define your box ===
For this, modify the array $this->boxes into the module descriptor file.
For this, modify the array $this->boxes into the module descriptor file.
All you have to do is to add one line for each box file you will create into directory '''htdocs/includes/boxes'''
All you have to do is to add one line for each box file you will create into directory '''htdocs/core/boxes'''


''Example:''
''Example:''
Line 412: Line 412:
</source>
</source>


Then create files mybox0.php, mybox1.php... by copying an example from an existing box file (into directory htdocs/include/boxes).
Then create files mybox0.php, mybox1.php... by copying an example from an existing box file (into directory htdocs/core/boxes).


=== Test if your box is detected by Dolibarr ===
=== Test if your box is detected by Dolibarr ===
Bureaucrats, emailconfirmed, Administrators
149

edits

Navigation menu