Skip to content

[Twig/Templating] Unable to find template "FooBarBundle::template.html.twig" #9867

Closed
@mykiwi

Description

@mykiwi

Hi

I created a new Symfony project and added Twig. I also added an external Bundle that use the syntax FooBarBundle::template.html.twig and I got this exception:

Unable to find template "FooBarBundle::template.html.twig" (looked into: /srv/templates, /srv/templates).

To fix this I had to require symfony/templating and add this config:

framework:
    templating:
        engines: ['twig']

Maybe we should document this, and improve the DX with a recipe.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions