Hey Sam!

There could be a problem with the documentation, but it also depends
on how up-to-date the Symfony that you're using is. The code and
documentation was updated recently to use a new path (the path that
you're trying to use). If you have older code, however, you may need
to place the file at "app/views/FrameworkBundle/Exception/
error.html.twig".

If neither work, let me know - as the Symfony2 core solidifies, we're
going through the docs to be sure that everything is fully up-to-date.

Thanks!

On Mar 24, 9:57 am, Sam <asearcherfore...@gmail.com> wrote:
> I'm starting to explore Symfony2 and I love what I've seen so far. I'm
> having issues overriding error templates. I've followed the
> instructions on this page (http://symfony.com/doc/2.0/cookbook/
> controller/error_pages.html) which lists the location to put my error
> template at (app/Resources/FrameworkBundle/views/Exception/
> error.html.twig). However it is still using the default template.
>
> I'm making sure to clear my cache using both "app/console cache:clear"
> as well as "rm -rf app/cache/*".
>
> I've also tried having the page at (app/Resources/FrameworkBundle/
> Exception/error.html.twig).
>
> When I have it at (app/views/FrameworkBundle/views/Exception/
> error.html.twig) or (app/views/FrameworkBundle/Exception/
> error.html.twig) I was able to get symfony to throw an error when I
> introduced an error into the template so it is seeing it there but
> still not using it.
>
> Is this a bug? Or am I doing something wrong?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to