Skip to content

Include in module's views not working #30

@unti1x

Description

@unti1x

Having module my_module. Inside one of it's views, e.g. default/index.twig, appears line

{% include 'views/default/list.twig' %}

This wont work 'couse twig looking for file in protected directory. It's possible to use paths like my_module/views/default/list.twig, but it will be broken if module changed it's name or path, (e.g. it's installed via composer into protected/vendor). There is no way to specify folder-independent path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions