Hi everyone,
I was just wondering if there is a nice clean way of getting the URLSegment (or the whole URL) for a page by parsing just the ID of the page? (i'm talking in the Page class
not the template - but to use in the template too)
I know i can do:
DataObject::get_by_id('Page',$id)->URLSegment();
But is there a function like:
Page::getURL($id);
Any help is much appreciated.