2008/5/15 Sumedh [EMAIL PROTECTED]:
?php echo get_class($sf_request)?
in my template...and I got nothing printed... :(
Err, that's weird. What does say a var_dump($sf_request) ?
And the method to use url_for would work for the URL's for which I
have no rules...but what about the URL's that
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
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
use get_class($sf_request) to know the class used in the template. It
should be sfWebRequest, unless you change the factories value for your
env.
Thomas
On Wed, May 14, 2008 at 3:46 PM, Sumedh [EMAIL PROTECTED] wrote:
Thanks Nicolas...
But when I try $sf_request-getUriPrefix() in a