Jon Busby wrote:
> Might be a silly question, but how would i use url_for in an action?..
>
> Kiril Angov wrote:
>
>> Jon Busby wrote:
>>
>>
>>> Hi everyone,
>>>
>>> Simple question this - how can I get symfony to return a full link to a
>>> module - in an action.. (just like Link_to does, but without the xhtml)
>>>
>>> Jon
>>>
>>>
>>>
>>>
>>>
>> Are you looking for
>>
>> (string) url_for ($internal_uri, $absolute = false)
>> Returns a routed URL based on the module/action passed as argument and
>> the routing configuration.
>>
>> http://www.symfony-project.com/api/1_0/UrlHelper
>>
>> Kupo
>>
>>
>>
>>
>
>
Like this you can load any helper anywhere. sfLoader::loadHelpers (array
$helpers, $moduleName = '')
sfLoader::loadHelpers(array('Url'));
$url = url_for(...);
Kupo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---