R
R
RushV2020-09-18 19:16:26
MODX
RushV, 2020-09-18 19:16:26

How to write user id in tv modx?

Hello!
How to write user id in tv or placeholder?
Here I made a snippet correctly, I don’t even know.

$id = $modx->user->get('id'); 
$res->setTVValue('idUser', $id); 
$res->save();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question