Luminova Framework

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

  1. PHP Layout Composition and Inheritance

    Compose PHP views from shared layouts and named sections.

  2. Smarty Template Engine Extension

    Render Smarty templates with Luminova’s view context and template helpers.

  3. View Response Object

    Send response content, JSON, or files with an explicit HTTP status and headers.

  4. View Template Rendering

    Render PHP, Smarty, or Twig views with optional output caching.

  5. Twig Template Engine Extension

    Render Twig templates with Luminova’s view context and template helpers.

  6. Compose PHP Views with the Layout Engine

    Compose reusable PHP layouts, capture named and nested sections, import partials, and substitute placeholders in rendered views.

  7. Template View Isolation and the $self Variable

    Access view data, exported objects, and layouts through `$self` in isolated Luminova PHP templates.