Skip to content
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

Twig: Missing Template #1000

Closed
pierma67 opened this issue Aug 15, 2017 · 4 comments
Closed

Twig: Missing Template #1000

pierma67 opened this issue Aug 15, 2017 · 4 comments
Labels

Comments

@pierma67
Copy link

(sorry, I searched about this but I found similar issues but without solution)
This code in a Controller:
/**

  • @route("/edit/{id}", requirements={"id"="\d+"}, name="categoria_edit");
  • @template()
    */
    public function editAction($id, Request $request)
    {
    gives me the message "Missing Template" but edit.html.twig does exist and if I try to follow the proposed action it asks me to create a template named ed.html.twig.
@pierma67
Copy link
Author

(I add: all other templates in the same controller solve to correct names - also, if I rename my edit.html.twig template to ed.html.twig Symfony plugin stops complaining but, obviously, application stops working as the correctly named template is not found)

@goedderz
Copy link

goedderz commented Aug 17, 2017

I've got the same issue with an action named latestBalanceSheetAction. The proposed action would like to create latestBalanceShee.html.twig (with a missing t). I tested a bit and found that latestBalanceSheetFooBarAction results in the expected latestBalanceSheetFooBar.html.twig, while latestBalanceSheetFooAction results in latestBalanceSheetF.html.twig.

P.S.: This is with PHPStorm 2017.2.1 and Symfony Plugin v0.14.150.

@goedderz
Copy link

This looks like a duplicate of #999

Haehnchen added a commit that referenced this issue Sep 6, 2017
@Haehnchen
Copy link
Owner

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants