Skip to content

[TEMPLATING] PHP's app template location is invalid #16220

New issue

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

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

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

[TEMPLATING] PHP's app template location is invalid #16220

wants to merge 2 commits into from

Conversation

rvanginneken
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets #14804
License MIT
Doc PR ~
  • run tests

@jakzal
Copy link
Contributor

jakzal commented Oct 23, 2015

re #15272

@@ -75,7 +75,7 @@ public function all()
*/
public function getPath()
{
return $this->parameters['name'];
return 'views/'.$this->parameters['name'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is most likely not the right way to solve this issue, as it forces everyone to store templates in the "views" directory. While this might be the case for Symfony projects, it's not necessarily the case for other projects using the templating component.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allright. I used it because same logic is applied in frameworkbundle. But I see what you mean.

@fabpot fabpot closed this Jan 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants