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