asset() should just have a second parameter like router->generate()
does, to generate a url or a path, or we split it in two helpers:
asset_url() and asset_path(), that would be more consistent.

On Thu, Jan 6, 2011 at 7:40 PM, Christophe COEVOET <[email protected]> wrote:
> Le 06/01/2011 19:34, Aaron DM a écrit :
>>
>> {{ url('/path/to/asset') }}
>>
>> in twig templates
>
> url() uses the routing component to generate the url so it is not the same
> use. My point is to get the url of the asset just as asset() returns the
> path.
>
> --
> 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
>



-- 
Jordi Boggiano
@seldaek :: http://seld.be/

-- 
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