Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Allow to pass template name into lastTweetsAction()? #22

Description

@mpdude

Would you merge a PR that makes it possible to pass the name of the template to use for rendering the tweets as a controller parameter?

Currently, it's hardcoded as KnpLastTweetsBundle:Tweet:lastTweets.html.twig.

Yes, I know about overriding bundle templates.

The reason I am asking is because I provide a bundle that uses KnpLastTweetsBundle and I would like to use a view from my bundle.

Symfony's mechanism only allows the user to override the template with one in his app/ directory. As a bundle author, I cannot use that approach to override the template.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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