Forums

display id group user

agostino87 05 Oct, 2016
to display the user id i use this code

<?php
$user = JFactory::getUser();
$form->data['codiceca'] = $user->id;
?>


how can I change the code to display the user's group id?

thanks
GreyHead 05 Oct, 2016
Hi agostino87,

In Joomla! 3 a user can belong to several groups - what do you actually need to show?

Bob
This topic is locked and no more replies can be posted.