Thanks... I will try the suggestions.
The main problem with setting it manually is that when using source
control and running the scripts on local vs server enviroments, it is
better to use a built in mechanism reading configs, than to hard code
a url in a template.
k-
On Aug 19, 1:45 am, Fabrice B <[EMAIL PROTECTED]> wrote:
> > Does anyone have a solution to this???
>
> symfony guesses the root url using the $_SERVER variable, which you
> can set manually beforehand
>
> $_SERVER['HTTP_X_FORWARDED_HOST'] = 'myhost';
> sfConfig::set('sf_no_script_name',true);
> sfConfig::set('sf_relative_url_root','');
> echo sfContext::getInstance()->getController()->genUrl('module/
> action',true);
>
> However I had the impression this worked very well too :
>
> echo 'http://myhost'.sfContext::getInstance()->getController()-
>
> >genUrl('module/action',false);
>
> Did you try that ?
>
> Fabrice Bernhard
> --http://www.allomatch.comhttp://mobile.allomatch.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---