How to instantiate a user

Permalink
If I have a user ID from my own table, how do I instantiate a user object with it? I tried:

$u = new User($row['AssociatedID']);


But, the above seems to only return a user object for the current logged in user.

I'm under the hood of C5 now, but if someone can save me some time, I'd appreciate it.

Thanks!

Darkwater23
 
ryan replied on at Permalink Reply
ryan
$u = User::getByID($uID);
Darkwater23 replied on at Permalink Reply
Darkwater23
Thanks, Ryan! You're a rock star!