A
A
AlexRas2018-10-03 09:07:55
MODX
AlexRas, 2018-10-03 09:07:55

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 question

Ask a Question

731 491 924 answers to any question