Skip to content

Instantly share code, notes, and snippets.

@andreia
Created January 23, 2013 01:51
Show Gist options
  • Save andreia/4601078 to your computer and use it in GitHub Desktop.
Save andreia/4601078 to your computer and use it in GitHub Desktop.
Symfony2: Using absolute URLs for your assets
(e.g. for email templates)
Just set the assets_base_urls 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment