I think it makes sense. The symfony1 equivalent, asset_path(), took a boolean second argument for absolute or not.
So, unless someone is seeing through the argument for, now someone just needs to implement it and send a pull request. Ryan Weaver Lead Programmer - iostudio - Nashville, TN http://www.iostudio.com http://www.thatsquality.com Twitter: @weaverryan On Fri, Jan 7, 2011 at 8:23 AM, Christophe COEVOET <[email protected]> wrote: > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- 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
