Luminova Framework

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

  1. 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.

  2. 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.

  3. Route URI Segment Object

    View Segments is a utility class designed to assist in accessing requested view URIs, simplifying processing tasks.

  4. 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.

  5. 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.

  6. HTTP X Method Overrides and Method Spoofing

    Database Builder Class: An Object-Relational Mapping Tool for Simplified CRUD Operations and Object-Oriented Database Management.

  7. 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.

  8. 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.

  9. 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.