[symfony-users] Re: Generate absolute URL for upload directory

2009-07-23 Thread Mo Mughrabi
Thanks Eno, I found a way which helped me return the absolute url for any location i need through the public_path helper. First i had to include the helper through the getConfigurations sfContext::getInstance()->getConfiguration()->loadHelpers(array('Url')); and then just use the public_path('u

[symfony-users] Re: Generate absolute URL for upload directory

2009-07-23 Thread Eno
On Thu, 23 Jul 2009, Mo Mughrabi wrote: >I was trying to generate an absolute URL inside my form classes using > sfContext::getInstance()->getController()->genUrl(); but apparently genUrl > only can be used when supplied a route or module/action but i cannot get it > to return the absolute pa