Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
Hi. I'm trying to reference the currently displayed group id in a module that's displayed on the /viewgroup page. I've been trying this code but it doesn't seem to work:
$group = JTable::getInstance('Group', 'CTable');
$group->load($groupId); then I set a variable = $group->id;
This code doesn't seem to pull the group's id though. I looked through the documentation and found info on how to call the object for a user, but not a group. Can you provide some guidance on which php code should be used to reference the group id.....I really don't want to parse my URL :)