Skip to content

Consider improving the templating chapter #6468

@javiereguiluz

Description

@javiereguiluz

Symfony 3.0.4 introduced a BC-break ... which actually fixed a long-standing bug.

Apparently, wrong template paths like this one worked before 3.0.4: WidgetsCoreBundle:weather/five_days.html.twig

The right path would be WidgetsCoreBundle::weather/five_days.html.twig or WidgetsCoreBundle:weather:five_days.html.twig.

A lot of people seem to be using wrong template paths unawarely, because we've received lots of issue reports: symfony/symfony#18522, symfony/symfony#18364, symfony/symfony#18497 and symfony/symfony#18653.

One of the issue reporters said: "it's not that clear in the doc: http://symfony.com/doc/current/book/templating.html" and " it's not really clear for this point in the docs".


Posible solutions:

  • Reword part of that chapter to explain things better.
  • Switch to the cool and modern and amazing namespaced templating notation: @WidgetsCore/weather/five_days.html.twig

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