Home >Backend Development >PHP Tutorial >Joomla3 add an administrator
Generally, the user group id is 2 and the administrator group id is 8. Since setting the group id in User Class will also verify whether the current user has the permission to manage the role, so without logging in, you can only set 2 first and then use SQL to change it. 8. JPluginHelper::importPlugin('user');
$user = new JUser;
|