Ruben de Vries
2011-08-17 15:27:20 UTC
For some situations (like print / pdf generation, etc) it might be helpfull
to be able to output absolute paths in twig, unfortunatly we can't tell
either url() nor asset() (nor assetic) to output an absolute path ...
For now I've created a twig filter which uses some of the code from the
Symfony2 UrlGenerator component to create an absolute path .. but it feels
really dirty ..
any ideas?
PS. my case was for generating a PDF using
https://github.com/knplabs/KnpSnappyBundle
--
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 "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
to be able to output absolute paths in twig, unfortunatly we can't tell
either url() nor asset() (nor assetic) to output an absolute path ...
For now I've created a twig filter which uses some of the code from the
Symfony2 UrlGenerator component to create an absolute path .. but it feels
really dirty ..
any ideas?
PS. my case was for generating a PDF using
https://github.com/knplabs/KnpSnappyBundle
--
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 "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en