Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Page Titles


Go to End


19 Posts   7191 Views

Avatar
Reflektera

49 Posts

20 September 2007 at 9:47am

I have the same problem as dio5, can't get that global thing to work. Any solution?

Avatar
Nathan Cox

Community Member, 99 Posts

20 September 2007 at 10:09am

One option would be to put a SiteName() method into Page_Controller:

function SiteName() {
    global $SiteName;
    return $SiteName;
}

It does take a but more code, though :)

Avatar
Reflektera

49 Posts

20 September 2007 at 10:26am

Thanks, I'm fine with that...

Go to Top