Tag Archives: plugin

MODx: Plugin to Display Errors in a Development Environment

// You need to set the Apache variable LIVE on your live server $e = &$modx->Event; switch ($e->name) { case “OnWebPageInit”: if ( !isset($_SERVER['LIVE']) ) // development environment { error_reporting(E_ALL); ini_set(“display_errors”,”1″); } break; default: return; // stop here – this … Continue reading

Posted in MODx | Tagged | Leave a comment