I used to have a function Current() on my Category-class (extends DataObject):
if($_GET['Title'] == $this->Title) return " class='current'";
Now I rewrote some stuff so I don't have to use $_GET anymore, but use urlParams instead.
But the problem is, how do I call it from within my dataobject?
if(????->urlParams['ID'] == $this->Title) return " class='current'";
(That's not the main function that uses the urlparams, but the other functions are on the pagecontrollers..)