Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[ResourceBundle] Fix template not found issue #5061

Conversation

marek-pietrzak-tg
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related tickets fixes #4800
License MIT

Fixes errors raised for a new resource with custom template path different than a default one (with colons, e.g. SyliusAdminBundle:Product).
Now the template is being found also under app/Resources/views directory.
I've noticed also a .html part was lost during one of the last commits in ResourceController. That's fixed as well.

All configurations should work now assuming correct twig files in place:

sylius_resource:
    resources:
        app.book:
            templates: book/Backend
            classes:
                model: AppBundle\Entity\Book
        app.artist:
            templates: AppBundle:artist
            classes:
                model: AppBundle\Entity\Artist
        app.author:
            classes:
                model: AppBundle\Entity\Author

@pjedrzejewski pjedrzejewski merged commit 219a3ab into Sylius:master May 18, 2016
@pjedrzejewski
Copy link
Member

Awesome, thank you so much Marek! 👍

@marek-pietrzak-tg marek-pietrzak-tg deleted the hotfix/resource-default-template branch May 18, 2016 17:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Template not found with new resource/entity/model in ResourceBundle
2 participants