Hi,
>> Might be a silly question, but how would i use url_for in an action?..
>
> Like this you can load any helper anywhere. sfLoader::loadHelpers (array
> $helpers, $moduleName = '')
>
> sfLoader::loadHelpers(array('Url'));
> $url = url_for(...);
Yes, but in this case there's a better way, as url_for() is actually
just a wrapper for sfWebController::genUrl().
So in your action you can do it like that:
$url = $this->getController()->genUrl($asdf);
Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---