We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37686
    • 94 Posts
    for the package profile, i need to get the username from its userid.. how can i get the username based upon this id?
      • 8386 ☆ A M B ☆
      • 160 Posts
      In xPDO you can do

      <?php
      $user = $modx->getObject('modUser', $id);
      $user->get('username');