We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Search
How can i get the username by its userid?
94 Posts
stevebravo
Reply #1,
11 years, 5 months ago
for the package profile, i need to get the username from its userid.. how can i get the username based upon this id?
☆ A M B ☆
160 Posts
Silent Works
Reply #2,
11 years, 5 months ago
In xPDO you can do
<?php $user = $modx->getObject('modUser', $id); $user->get('username');