Hi I have the following PHP file:
class GoogleAnalytics extends ContentController {
static $googleAnalyticsCode;
function init() {
parent::init();
}
Public function analyticsCode() {
echo "xyz";
return self::$googleAnalyticsCode;
}
}
In my /Includes/Analytics.ss file I have
...
$analyticsCode
...
the Analytics template is included, but I do not get an error message (because of the echo and there is no analyticsCode. I was wondering if anyone can tell what I am doing wrong - please?
Nicolaas