Routing Requests
Routing defines how URLs or routable CLI commands are connected to controllers and actions. Learn how to create clean, SEO-friendly routes and manage dynamic parameters efficiently.
Table of Contents
- HTTP and CLI Routing System
The Luminova routing system helps your app handle web and CLI requests by linking each URL or command to the right controller and method.
- Method-Based Routing
Method-Based Routing with URI prefixes simplifies route management, improving performance and organization by using method calls instead of attributes for request handling.
- Route URI Segment Object
View Segments is a utility class designed to assist in accessing requested view URIs, simplifying processing tasks.
- Dependency Injection in Routable Controller Methods
Luminova’s Dependency Injection system resolves and passes objects to your routable controller methods, while also handling any URI segment parameters at the same time.
- Dynamic URI Placeholders
Dynamic URI placeholders capture and validate URL segments by data type, passing them to controllers. Predefined patterns also support optional PHP datatypes for flexible routing.
- HTTP X Method Overrides and Method Spoofing
Database Builder Class: An Object-Relational Mapping Tool for Simplified CRUD Operations and Object-Oriented Database Management.
- HTTP Controller Routing
Learn how to define routes in Luminova using view controller methods or closures, with simple static or notation-style references for APIs or Website requests handling.
- CLI Controller Routing
Learn how to define and route CLI commands in Luminova using command controllers or closures, with support for groups, middleware guards, and dependency injection.
- Dynamic URI Routing
Create dynamic routes in Luminova using predefined placeholders, named placeholders, or raw regular expressions. Learn how URI segments are matched, validated, and passed to controller methods.