Skip to content

An exception has been thrown during the rendering of a template ("The "hinclude" renderer does not exist."). #34815

@HecFranco

Description

@HecFranco

Symfony version(s) affected: 5.0.1

Description
I include the render_hinclude as indicated by the documentation and it returns this error.

How to reproduce

{% extends 'base.html.twig' %}

{% block title %}Hello FirstController!{% endblock %}

{% block body %}
<style>
    .example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
    .example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
</style>

<div class="example-wrapper">
    <h1>Hello {{ controller_name }}! ✅</h1>
    <!-- begin: add -->
    {{ render_hinclude(controller('App\\Controller\\FirstController::second'), {default: 'Loading...'}) }}
    <!-- end: add -->
    This friendly message is coming from:
    <ul>
        <li>Your controller at <code><a href="{{ 'G:/00.ProjectWeb/symfony-5-by-sample/01.Quick_Start/04.MakerBundle_First_Controller/src/Controller/FirstController.php'|file_link(0) }}">src/Controller/FirstController.php</a></code></li>
        <li>Your template at <code><a href="{{ 'G:/00.ProjectWeb/symfony-5-by-sample/01.Quick_Start/04.MakerBundle_First_Controller/templates/first/index.html.twig'|file_link(0) }}">templates/first/index.html.twig</a></code></li>
    </ul>
</div>
{% endblock %}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy