I have a app made with Symfony2 and in my twig template, I show a table with some pdf files.
This pdf files (one for user) are stored in /app/var/pdf/xxx.pdf
.
If I use:
<a href="{{ 'entity.pdf' }}">PDF</a>
My path is correct, for example: symfony/app/var/pdf/123123.pdf
, but when I click in the link, my browser return a 404 Not Found error. Obviusly I have checked that the file is stored in this path.
Any help?
Thanks in advance.