changed JRequest into $app->input->getCmd

better JCode