Trongate PHP Framework Docs
Introduction
Quick Start
Basic Concepts
Understanding Routing
Intercepting Requests
Module Fundamentals
Database Operations
Templates
Helpers
Form Handling
Form Validation
Working With Files
Image Manipulation
Working With Dates & Times
Language Control
Security
Tips And Best Practices

Modules Ahoy!

Everything in Trongate is made of modules.

Your app? A pile of modules.

Your features? Modules.

HTML templates? Modules.

Database interaction? Modules.

Your life? Modules.


What the Hell Is a Module?

A module is a folder in modules/ that contains everything for a feature.

modules/
  users/
    Users.php           ← controller (required)
    Users_model.php     ← optional
    views/              ← PHP templates
    css/
    js/
    images/
    child_modules/      ← modules in modules (ooh lala!)

Trongate modules are portable, independent, and 100% Native PHP.

No routes. No service providers. No PSR-4.

Drop it in. Hit refresh. Done.

At the heart of every module? The controller.

Next page: how to rule the universe with modules.

Let’s roll.

We're continually improving the Trongate documentation. If anything is incorrect, unclear, incomplete, or could be better, we'd genuinely appreciate your input.

Share your thoughts in the Documentation Feedback.

Leave Feedback About This Page