Templates & Responses
Table of Contents
- Template View Rendering Examples
This documentation covers the basic implementation of template handling within the Luminova framework controllers.
- PHP Template System with Layout Inheritance
Template Layout provides a simple and flexible template manipulation to native PHP templating for managing layout files and extending layout sections within views.
- Handling Custom Response Rendering
The Response class allows you to send raw output, JSON, or files directly to the browser, client, or as a controller method response for routing. Perfect for APIs, JS frameworks, or dynamic endpoints.
- Smarty Templete Engine Implementation
Using the Smarty template engine to render templates, Luminova custom methods simplify your experience and minimize class initialization, ensuring optimal performance.
- Twig Templete Engine Implementation
Using the Twig template engine, to efficiently render templates and minimizing class initialization to save you the time and effort of manually registering classes and functions.
- View Layer and Template Rendering
The View class renders templates with optional caching and layout inheritance, ideal for MVC/HMVC apps where you need structured and fast HTML output.