1

I am having some trouble telling twig which template to load.

I have a file located in MyBundle/Resources/Views/Admin/Project/list.html.twig

When I declare: return 'MyBundle:Admin:Project:list.html.twig' I get the following error:

Unable to find template 

If I move the file out of the Project directory i.e. MyBundle/Admin/list.html.twig and declare: return 'MyBundle:Admin:list.html.twig' the template is rendered. Am I missing something?

Thanks!

1
  • Thanks Levon, Ill try to keep this in mind! Commented Jun 9, 2012 at 2:49

1 Answer 1

5

Try this:

MyBundle:Admin:Project/list.html.twig
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.