Thanks Nicolas... But when I try $sf_request->getUriPrefix() in a template, I get nothing... :(
Why would that be? BTW, why cant I get anything for sfConfig::get('sf_cache') in the template, whereas if I put it in the action class, I do get a valid value...? On May 14, 6:33 pm, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > On 14 mai 2008 15:29, Sumedh <[EMAIL PROTECTED]> wrote: > > > $sf_request is an instance of sfRequest and not sfWebRequest right? > > In a web context, $sf_request is typed as sfWebRequest (try a > var_dump($sf_request)). > > > I want to convert my relative "Home" link to an absolute one...for > > SEO... > > Try <?php echo url_for('@homepage', true) ?>. > > ++ > Nicolas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---