Skip to content

Remove namespaced twig paths with colons #66

@clicktrend

Description

@clicktrend

It's not possible to override templates if you use twig paths with colons. This is deprecated (Symfony Doc).

In the past, Symfony used a different syntax to refer to templates. This format, which uses colons (:) to 
separate each template path section, is less consistent and has worse performance than the Twig syntax.

Please change "Template" annotations in all controllers. For instance have a look at product view action Link

Change

@Config\Template("MarelloProductBundle:Product:view.html.twig")

to

@Config\Template("@MarelloProduct/Product/view.html.twig")

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions