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
Trongate's Directory Structure
engine/
The beating heart. Routing, helpers, magic. All written in modern PHP.
Don't touch the files in this folder ...or else!
config/
Plain PHP files. No YAML. Nothing weird. Nothing to learn.
config.php • database.php • custom_routing.php • etc.
modules/
Your app lives here. One folder per feature. No third-party code. 100% Native PHP.
Trongate ships with the following built-in modules:
| Module | What It Does |
|---|---|
db | Database connections and CRUD operations |
file | File upload, move, copy, delete |
flashdata | One-time session messages |
form | Form input generation |
image | Image resize, crop, rotate |
language | Multilingual support |
pagination | Page navigation |
string_service | String manipulation |
templates | Admin and public page rendering |
login | Universal login for any user table |
trongate_administrators | Admin panel (create, edit, delete users) |
trongate_email | Send emails via SMTP |
trongate_control | Module management and SQL import |
trongate_security | Permission checking |
trongate_tokens | API token generation and validation |
url | URL generation and redirects |
utilities | Debugging and utility tasks |
validation | Form validation and error display |
welcome | Default landing page |
Trongate v2 killed the controllers/ subfolder. You're welcome.
public/
The only folder the internet sees. Drop your CSS, JS, images, index.php, and that one favicon you keep forgetting.
Trongate has no third-party dependencies.
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.