Le 07/01/2011 15:14, ryan weaver a écrit :
Hey guys

Hasn't there been conversation somewhat related to this before per having assets at different CDN's? Looking, I see the templating configuration parameter "assets-base-urls", which ultimately sets a parameter on the DIC called "templating.assets.base_urls". But, I don't see this being used anywhere. Can anyone else shed some light?

Ryan Weaver
Lead Programmer - iostudio - Nashville, TN
http://www.iostudio.com
http://www.thatsquality.com
Twitter: @weaverryan

This is used by the asset() function. When the assets.base_urls parameter is set the assets link are absolute and can target another domain (and you can have more than one). For example, all assets on github are on subdomains asset*.github.com (it is not written in Symfony2 but the use is the same). If several base-urls are set the asset() function choose one of them randomly for each asset.

My point is different as I want to be able to have once an absolute url even if my assets are not on another server (i.e. without using this parameter)

--
Christophe | Stof

--
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to