Look at this :
http://groups.google.com/group/symfony-users/browse_thread/thread/b8991d26a8bfc82f?pli=1

2009/10/19 Alexandru-Emil Lupu <[email protected]>

> hi!
> thanks, but this is exactly what i do not want to do (to pass to each
> url_for / link_to a sf_format parameter ).
>
> "automatically append to the generated urls a custom sf_format extension,
> *without **passing it as argument *to the url functions (url_for, link_to
> etc)"
>
> Alecs
>
> On Tue, Oct 20, 2009 at 12:13 AM, Alexandre SALOME <
> [email protected]> wrote:
>
>> Try this :
>>
>> url_for('@homepage?sf_format=html')
>>
>> Alexandre
>>
>> 2009/10/19 Alexandru-Emil Lupu <[email protected]>
>>
>> Hi there!
>>> It is any chance to automatically append to the generated urls a custom
>>> sf_format extension, without passing it as argument to the url functions
>>> (url_for, link_to etc)
>>>
>>> i mean i have this route:
>>>
>>> Homepage:
>>>   url: /index.:sf_format
>>>   params: .....
>>>   requirements:
>>>     sf_format: (?:html)
>>>
>>> when i use url_for(__('Home page'), '@homepage'), to render the url like:
>>> index.html
>>>
>>> Thanks.
>>>
>>> Alecs
>>>
>>> --
>>> As programmers create bigger & better idiot proof programs, so the
>>> universe creates bigger & better idiots!
>>> I am on web:  http://www.alecslupu.ro/
>>> I am on twitter: http://twitter.com/alecslupu
>>> I am on linkedIn: http://www.linkedin.com/in/alecslupu
>>> Tel: (+4)0748.543.798
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Alexandre Salomé -- [email protected]
>>
>>
>>
>
>
> --
> As programmers create bigger & better idiot proof programs, so the universe
> creates bigger & better idiots!
> I am on web:  http://www.alecslupu.ro/
> I am on twitter: http://twitter.com/alecslupu
> I am on linkedIn: http://www.linkedin.com/in/alecslupu
> Tel: (+4)0748.543.798
>
>
> >
>


-- 
Alexandre Salomé -- [email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to