Trongate Website Homepage

The Anatomy of a Trongate Module

A Trongate module is typically organized into three primary directories, each serving a specific purpose:

The basic structure of a typical Trongate module
The basic structure of a typical Trongate module.

What About The 'Models' Directory?

To facilitate secure and efficient database interactions, all Trongate modules can access and utilize a 'Model' PHP class. This class is centrally located within the Trongate framework's 'engine' directory, rather than within individual modules. This centralization simplifies maintenance and enhances security, ensuring consistent database interaction across all modules.