Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
write all formvalues as well as the complete formit config into modx error log
$modx->log(xPDO::LOG_LEVEL_ERROR, "snippetname values: " . print_r($hook->getValues(), true));
$modx->log(xPDO::LOG_LEVEL_ERROR, "snippetname config: " . print_r($hook->formit->config, true));
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment