How do I obtain UserID within a Block?
Permalink
I'm trying to make life easy for my users... perhaps I'm over complicating it and there's an easier way - I'm open to that possibility and if somebody can help me see the light, many thanks!
I'm adding to Tony's Login block so that once logged in, it will hide the login form, display a link to logout, and display a "Change Password" link. I have that password change link pointing to the following:
I've looked at the API and found
but that doesn't do what I expect it to when I
Most of the time, when I run into these kinds of issues, I'm forgetting something silly and it just takes another pair of eyes ...
I'm adding to Tony's Login block so that once logged in, it will hide the login form, display a link to logout, and display a "Change Password" link. I have that password change link pointing to the following:
"/index.php/dashboard/users/search?uID=' . $uID . '&task=edit"
I've looked at the API and found
User::getUserID();
but that doesn't do what I expect it to when I
$uID=User::getUserID();
Most of the time, when I run into these kinds of issues, I'm forgetting something silly and it just takes another pair of eyes ...
I echo out my variable, and it appears to be blank.