--- layout: default navPage: docs heading: index.php breadcrumbs: - Module Development,/module_development/ - Form Tools 3,/module_development/ft3/ - Anatomy of a Module,/module_development/ft3/anatomy/ - index.php prev: Module.class.php,/module_development/ft3/module_class/ next: index.tpl,/module_development/ft3/file_index_tpl/ categories: module_development versions: FT3 --- {% include open_section.html nav='nav_module_development_ft3.html' selected='file_index' nav_width=4 %}
The index.php file located in your module root ([form tools root]/modules/my_module/
) is the
first page the user is linked to after they select the module within the Form Tools interface. A bare-bones
example can be lifted from the Hello World! module:
That imports the main Form Tools code, initializes the module page and displays the template page (index.tpl).
All of your pages need to include the Form Tools core's global/library.php
file and call the
initModulePage()
method to ensure everything is properly prepared to load your page.
Further information:
{% include close_section.html %}