Templates & Responses
Render views and build HTTP responses with Luminova. Organize PHP templates into layouts or integrate the Smarty or Twig template engine.
Table of Contents
- PHP Layout Composition and Inheritance
Compose PHP views from shared layouts and named sections.
- Smarty Template Engine Extension
Render Smarty templates with Luminova’s view context and template helpers.
- View Response Object
Send response content, JSON, or files with an explicit HTTP status and headers.
- View Template Rendering
Render PHP, Smarty, or Twig views with optional output caching.
- Twig Template Engine Extension
Render Twig templates with Luminova’s view context and template helpers.
- Compose PHP Views with the Layout Engine
Compose reusable PHP layouts, capture named and nested sections, import partials, and substitute placeholders in rendered views.
- Template View Isolation and the $self Variable
Access view data, exported objects, and layouts through `$self` in isolated Luminova PHP templates.