initialise(); // render the application $mainframe->render(); /** * RETURN THE RESPONSE */ echo JResponse::toString();