E
E
Edward2021-01-24 21:49:37
MODX
Edward, 2021-01-24 21:49:37

GetObject in MODX EVO returns null how to solve?

$user = $modx->getObject('modUser', array(
        'username' => $username,
    ));

Returns null, but should return a user object

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Lunegov, 2021-01-25
@alelunegov

The Evo API is different from the MODX Revo API. Here, getWebUserInfo
should be used to get information about the web user .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question