Last Updated: February 25, 2016
·
6.575K
· andreia

Symfony2: Using absolute URLs for your assets

(e.g. for email templates)

Just set the assetsbaseurls option under framework - templating key in your app/config/config.yml:

framework:
    templating:
        assets_base_urls: http://www.something.com/web/

http://symfony.com/doc/current/reference/configuration/framework.html#assets-base-urls