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