Skip to content

Instantly share code, notes, and snippets.

@manchumahara
Last active August 29, 2015 14:00
Show Gist options
  • Save manchumahara/11140223 to your computer and use it in GitHub Desktop.
Save manchumahara/11140223 to your computer and use it in GitHub Desktop.
Old way:
$option = JRequest::getCmd('option');
New way:
$app = JFactory::getApplication();
$option = $app->input->getCmd('option', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment