Hey guys,
I've got a function which I would like to return $_SERVER['http_referer'] to the template.
I've worked out that I need to use getHeader() but I can't seem to get my scope right to access the method.
Here's my code (i've taken out non relevent bits):
class HomePage extends Page{
function ifReferrerSwitchImage() {
return $this->owner->request->getHeader('Referer');
}
}