0
votes

I'm practicing Symfony 3.1 And i start a tutorial How to create blog part 1. It's my second project.

So i've got an error Unable to find template "BloggerBlogBundle:Page:index.html.twig" (looked into: \htdocs\Blogger\app/Resources/views, \htdocs\Blogger\vendor\symfony\symfony\src\Symfony\Bridge\Twig/Resources/views/Form). I think the problem is that i'm using symfony 3.1... P.S. And i stoped on "We are now ready to view our blogger template" Can anyone help with this?

1

1 Answers

2
votes

That's a Symfony2 tutorial. Symfony3 uses the src folder for twig templates.

For example src/Resources/views/default/index.html.twig.

Try placing your twig template in:

src/Blogger/BlogBundle/Resources/views/Default/index.html.twig

Create the folder path Blogger/BlogBundle/Resources/views/Default if it doesn't exist.

I highly suggest going through the Symfony3 Book instead.