I'am updating code for Joomla! 3.5/3.6. I want to replace the following JRequest call by JInput, but i don't know the method i should use for that :

$return = base64_decode(JRequest::getVar('return', '', 'method', 'base64'));

The following is the correct replacement :

$return = $app->input->getbase64('return');


Thanks by advance


You can use the following:

$jinput = JFactory::getApplication()->input;

$return = base64_decode($input->get('return', '', 'BASE64'));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.