Introduction
Basic Concepts
Understanding Routing
Controllers
Views
Assets
Modules Calling Modules
Parent & Child Modules
Database Operations
Modules within Modules
Templates & Themes
Helpers Explained
Form Handling
Working with Files
The Module Import Wizard
Authorization & Authentication
The API Explorer
If you’ve found an error, spotted something missing, or feel a section could be clearer or better explained, we’d love to hear from you. Your feedback helps keep the documentation accurate and useful for everyone.
Please report issues or suggest improvements on GitHub. Community input is invaluable in making the docs stronger.
Not comfortable with GitHub? No problem — you can also get in touch with us directly via our contact form. We welcome all feedback.
Accessing Child Modules From Other Modules
From Controllers
To call (invoke) a child module from another Trongate module (that's any other kind of Trongate module!) we simply continue with our 'parent with a hyphen' policy when we are loading our child modules. Once the child module class has been successfully loaded, we no longer need to reference the parent module when invoking methods from the child module.
Below is an example of our display() method - inside 'accessories' - being called from within our 'cars' module:
From Views
Child Modules may be called from view files by following our convention of referencing the parent followed by a hyphen, when calling our child modules. For example: