Skip to main content

Questions tagged [jrequest]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
371 views

Better way to rewrite method without deprecated JRequest

I believe JRequest is deprecated in the latest version of Joomla 3, have rewritten this function: public function display($tpl = null) { $app = JFactory::getApplication(); $user = JFactory::...
Ruchika's user avatar
  • 423
0 votes
1 answer
1k views

JRequest Error to Joomla 4

I use this code on my component in Joomla 3: function add() { if(JRequest::checkToken( 'get' )) { JRequest::checkToken( 'get' ) or die( 'Invalid Token' ); } else { JRequest::...
Ali Zangeneh's user avatar
0 votes
1 answer
95 views

Retrieve post request in joomla sent from external app

I have created a script in Joomla app root folder for creating users which load joomla framework .. The script works fine with static data (username, password ..) but the task that i have consist on ...
Yafaa ats's user avatar
3 votes
1 answer
1k views

PHP7.2 Notice: Only variables should be passed by reference in

I got this notice when I changed a Joomla website from PHP 5.6 to PHP7.2 "Only variables should be passed by reference in ... on line 116" The second line is line 116 if($this->isViewExcluded(...
Joflx's user avatar
  • 31
3 votes
1 answer
2k views

Replacing JRequest (deprecated) with JInput

I believe JRequest is deprecated and should be replaced with Jinput, however when I change the following code: $limit = JRequest::getInt('limit', $app->get('list_limit')); $this->setState('list....
Ruchika's user avatar
  • 423
1 vote
3 answers
1k views

JRequest::get('post', JREQUEST_ALLOWRAW) has been deprecated, what is the working code now? [duplicate]

I have tried every input to get it working, but nothing works for me. This is the deprecated code $post = JRequest::get('post', JREQUEST_ALLOWRAW); list($title, $alias) = $this->...
810's user avatar
  • 13
6 votes
2 answers
5k views

How can I grab the user's IP address?

I want to store the user's IP address in a Joomla 3.5 component; with 2.5, I did a $ip = JRequest::getVar('REMOTE_ADDR', '', 'SERVER'); Which is the most efficient way to get the IP address from a ...
Tom Kuschel's user avatar
6 votes
2 answers
10k views

Joomla 3.3 deprecated function for JRequest::getVar()

public function storeans() { $user = JFactory::getUser(); $post = JRequest::getVar('post'); } In the above code, JRequest is deprecated. What is the equivalent that can be used in ...
user avatar
6 votes
3 answers
845 views

Input filtering an array of integers, words

This is one that has bugged me for several years now - Joomla provided JRequest, and then JInput to access filtered data from the incoming request. You can ask for filtered strings, integers, words ...
John Rix's user avatar
  • 561
15 votes
4 answers
11k views

How to check what component is being used on current page?

I want to set up my template so it will display different layout depending on what component is being used on current page. How to check for this?
FFrewin's user avatar
  • 19.7k
26 votes
2 answers
14k views

What's the proper way to get the entire $_POST?

In Joomla! 2.5.x I could simply run JRequest::get('post'); but seeing as JRequest is deprecated in Joomla! 3.x I should use JInput. At them moment this is the code I'm using to get the entire $_POST: ...
Spunkie's user avatar
  • 897