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