'[CalendarManager]'.$e->getMessage() ]); exit; } else { echo '[CalendarManager]'.$e->getMessage(); } // Stop this execution, but continue 'globally'. return; } // AJAX controller. if ((bool) is_ajax() === true) { $method = get_parameter('method'); if (method_exists($cs, $method) === true) { if (CalendarManager::ajaxMethod($method) === true) { $cs->{$method}(); } else { $cs->error('Unavailable method.'); } } else { $cs->error('Method not found. ['.$method.']'); } // Stop any execution. exit; } else { // Run. $cs->run(); }