☰
Trongate Docs
trOnGAtE
Welcome
Table of Contents
Welcome To The Revolution
Trongate's Free Forever Promise
About These Docs
Getting Started
A Word About MariaDB And MySQL
Installing PHP and MySQL
Let's Get Trongate!
Basics Concepts
A Few Words About Coding Style
The Structure of a Trongate Web App
Introducing Modular HAVC
The Problem With MVC
Isn't this the same as HMVC?
What's Inside A Module?
Understanding Routing
What Is Routing?
404 Error Pages
How Basic URL Routing Works
Reading Values From The URL
Preventing Methods From Being Invoked Via The URL
Advanced Custom Routing
Controllers
What Is A Controller?
The Structure Of A Controller
Defining A Default Controller
Views
Understanding View Files
An Example Of A View File Being Used
Passing Data Into View Files
Returning Views Output As A Variable
Best Practices
The File Asset Manager
Why We Need A File Asset Manager
Basic Example - Part 1
Basic Example - Part 2
The Module Assets Trigger
Additional Information
Modules Calling Modules
Calling Another Module From A Controller
Calling Another Module From A View
Super Modules & Sub Modules
Complete Video Tutorial
What Are Super Modules And Sub Modules?
Accessing Sub Modules Via The URL
Loading View Files From Within Sub Modules
Accessing Sub Modules From Other Modules
Templates
What Are Templates?
How To Create Your Own Website Template
Loading Templates
Passing Information Into Templates
Passing View Files Into Templates
Template Partials
About The Admin Template
Trongate CSS
Introducing Trongate CSS
Features and Benefits
Trongate CSS Examples
JavaScript Components
Trongate CSS Video Tutorial
Working With YouTube Videos
Helpers Explained
Helpers Introduction
The URL Helper
The Form Helper
The Form Validation Helper
The Flashdata Helper
The File Validation Helper
The Pagination Helper
Other Helpful Features
Form Handling
Trongate's Approach To Form Handling
Getting Started With Form Building
Creating A Books Database Table
Manually Building A Form
Improving Our Form
Form Validation (The Pipe Method)
Form Validation (The Array Method)
Displaying Form Validation Errors
A Closer Look At The Post Method
Repopulating Forms
Creating Records
Reading Records
Table Joins
Updating Records
Deleting Records
Custom Validation Callbacks
CSRF Protection
Database Interaction
How Trongate Works With Databases
Getting Started
How To Use Debug Mode
The 'Get' Method
The 'Get Where' Method
The 'Get Where Custom' Method
The 'Get One Where' Method
The 'Get Many Where' Method
The 'Count' Method
The 'Count Where' Method
The 'Count Rows' Method
The 'Get Max' Method
The 'Insert' Method
The 'Update' Method
The 'Delete' Method
The 'Query' Method
The 'Query Bind' Method
The 'Insert Batch' Method
Graphical Query Builder Video Tutorial
Uploading Files
A General Overview Of File Uploading
Building An Uploader Form
Understanding The Upload Process
Uploading Pictures
Working With Images
How To Build Picture Uploaders - Video Demo
Understanding Single Picture Uploaders
The Submit Upload Method
A Closer Look At Picture Settings
The Drag 'n' Drop Multi File Uploader
Controlling How Multi-File Uploaders Behave
The Module Import Wizard
What Problem Does This Solve?
How To Use The Module Import Wizard
Authorization and Authentication
Section Introduction
What We Are Trying To Achieve
How Trongate's Token System Works
The Three Security Tables
Generating Tokens (JavaScript Friendly Version)
Generating Tokens (PHP Friendly Version)
Fetching User Data From Tokens (JavaScript friendly version)
Fetching User Data From Tokens (PHP Friendly Version)
More Useful Features
Destroying Tokens (JavaScript Friendly Version)
Destroying Tokens (PHP Friendly Version)
Understanding HTTP Response Status Codes
The API Explorer
An Introduction To The Trongate API Explorer
API Terminology Explained
Trongate's Built-In Endpoints
Getting Started With The API Explorer
Building Your Api Settings File
Testing Your API Endpoints
Optional Additional Parameters
Before Hooks And After Hooks - General Overview
Before Hooks - Deep Dive
After Hooks - Deep Dive
Querying Endpoints
Understanding API Authorization
How To Attach Tokens To Requests
Wide Open Authorization
Role Based Authorization
ID Based Authorization
User ID Segment Authorization
User Code Segment Authorization
User Owned Segment Authorization
Custom API Endpoints
Before You Launch
Hiding Your Admin Login URL
Pre Launch Checklist
Web Hosting Advice
switch to dark mode
Prev
Next
Chapter 18
Authorization and Authentication
Prev
Next
×
Table Of Contents
Search Docs
Learning Zone
Help Bar
Homepage
Your Account