[symfony-users] Re: returning a link outside a template

2007-09-26 Thread Martin Kreidenweis
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, a

[symfony-users] Re: returning a link outside a template

2007-09-26 Thread Kiril Angov
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 d

[symfony-users] Re: returning a link outside a template

2007-09-26 Thread Jon Busby
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 >>

[symfony-users] Re: returning a link outside a template

2007-09-25 Thread Kiril Angov
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