Skip to content

Instantly share code, notes, and snippets.

@webnitros
Created January 14, 2018 05:43
Show Gist options
  • Save webnitros/cda39fdebdbaa4350fd05fcd53ba125c to your computer and use it in GitHub Desktop.
Save webnitros/cda39fdebdbaa4350fd05fcd53ba125c to your computer and use it in GitHub Desktop.
api file modx revolution
<?php
ini_set('display_errors', 1);
ini_set("max_execution_time", 50);
define('MODX_API_MODE', true);
require 'index.php';
$modx->getService('error', 'error.modError');
$modx->getRequest();
$modx->setLogLevel(modX::LOG_LEVEL_INFO);
$modx->setLogTarget('ERROR');
$modx->error->message = null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment