Module development: Difference between revisions

Jump to navigation Jump to search
Line 36: Line 36:
= [[File:Art.png]] Tree of path for new module files (required) =
= [[File:Art.png]] Tree of path for new module files (required) =
Create a directory 'mymodule' that will receive all files of your module. This directory must be inside the '''htdocs''' directory and will contains following subdirectories:
Create a directory 'mymodule' that will receive all files of your module. This directory must be inside the '''htdocs''' directory and will contains following subdirectories:
[[File:Arbo_module.png]]
 
* htdocs/includes/modules/ contains module descriptor file modMyModule.class.php
* htdocs/mymodule/admin/ contains pages to setup module
* htdocs/mymodule/class/ contains PHP class files provided by module
* htdocs/mymodule/css contains CSS files provided by module
* htdocs/mymodule/img contains images files provided by module
* htdocs/mymodule/includes/triggers contains triggers provided by module
* htdocs/mymodule/langs/en_US contains language files for module internationalisation
* htdocs/mymodule/lib contains libraries provided and used by module
* htdocs/mymodule/sql contains SQL file provided by module to add new tables or indexes
* htdocs/mymodule/themes/mythme if module provide its own skin


= [[File:Art.png]] Create your SQL tables and the PHP accessor class (optional) =
= [[File:Art.png]] Create your SQL tables and the PHP accessor class (optional) =

Navigation menu