Trongate Docs
switch to dark modeswitch to dark mode
What Are Super Modules And Sub Modules?

What Are Super Modules And Sub Modules?

Just To Let You Know
Previously, sub modules required additional code in order to work.  Specifically, they required a constructor and destructor.  You may have even seen tutorials going over this.  However, the additional code for sub modules is no longer a requirement.  Ordinary modules can work inside ordinary modules.

The Trongate framework gives developers the ability to have modules contained within modules. When a module contains one or more modules, the parent module is referred to as being a super module. In Trongate, child modules (i.e., modules that are contained within super modules) are called sub modules.

There's no command line required and definitely no need for any Packagist, Composer or vendor/autoload!

Imagine being able to drop just one folder into your app and immediately having:

  • A complete invoicing system
  • A complete online shop
  • A complete discussion forum
  • Or, any other advanced feature that you care to imagine!

Trongate makes this possible.

All you have to do - to take advantage of super modules and sub modules - is add a module inside an existing module and also be aware of a few rules that will assist you in calling your sub modules.


If you have a question or a comment relating to anything you've see here, please goto the Help Bar.