Hi guys,
I used to have a function Current() on my Category-class (extends DataObject):
function Current()
{
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?
function Current()
{
if(????->urlParams['ID'] == $this->Title) return " class='current'";
}
Any ideas?
(That's not the main function that uses the urlparams, but the other functions are on the pagecontrollers..)