Answer the question
In order to leave comments, you need to log in
How to execute code after saving object in modx revolution?
It is necessary, after creating or updating an object in the modx database, to execute a code that will send changes to a third-party service. How can I do that?
Code example:
$object = $modx->newObject('classQueue');
$object->set('user_id', 1);
$object->set('list', 'user');
$object->save();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question