aliahmadca
Member
Hello,
I am extending registration complete class, Other code is working fine when registration completes. but when I try to get User ID of user registered it is returning 0 as user id instead of original user ID.
This is my code sample.
Please help me getting user id when registration completes.
Thanks.
I am extending registration complete class, Other code is working fine when registration completes. but when I try to get User ID of user registered it is returning 0 as user id instead of original user ID.
This is my code sample.
PHP:
class RegistrationComplete extends XFCP_RegistrationComplete
{
public function actionIndex()
{
$visitor = \XF::visitor();
$visitor_id = $visitor->user_id
}
}
Please help me getting user id when registration completes.
Thanks.