How can I get the group id for page redirection?

Kevin Ngo Posted in Component Development 8 years ago

Hi, I'm trying to develop new features to OssnGroup but I need the group id to refresh the current group I am on. For example, I made a new file in the actions folder of OssnGroup. So after the action performs, I would like to refresh the current page I am on, that being the current page group.

in add.php
redirect("group/{$add->getGuid()}");

I noticed that add.php does have that redirection but it instantiates a new object, OssnGroup, to enable that function. Since I don't have a reference to that OssnGroup class, since it is already made in add.php, what methods can I use to get the group id? Thank you.

Replies