The Trongate PHP Framework
Documentation
Introduction
Quick Start
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
Best Practices

Help Improve Our Docs

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 Via The URL

The process of accessing parent modules - either via the URL or via other modules - is entirely unchanged. So, nothing new to learn there! Just access your parent modules the way you would normally access any normal Trongate modules.

Child Modules are a little different.

To access child modules via the URL, prefix the first segment of the URL with the name of the parent module followed by a hyphen. For example, let's assume that we want to access our accessories child module. More specifically, let's assume that we'd like to invoke the 'display()' method. We could invoke this by navigating to the URL:

http://localhost/app_name/cars-accessories/display

This would, of course, be assuming that 'accessories' is inside a parent module called 'cars'.

Creating Links

To create a text link that invokes the display() method, inside accessories, we could use the following code:

Again, notice how the first segment of the URL contains the parent module (in this case, 'cars') followed by a hyphen.

×