Questions tagged [jinput]
Joomla! Input Base Class This is an abstracted input class used to manage retrieving data from the application environment
9
questions
26
votes
3answers
12k 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:
...
6
votes
3answers
716 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 ...
5
votes
1answer
322 views
Class 'JInput' not found after updating to 3.7.3
I am updating a clients site to 3.7.3 and following the update receive the following on both the front end and admin:
Fatal error: Class 'JInput' not found in /home/wwwsitew/public_html/rmi/...
9
votes
3answers
4k views
What's the proper way of setting a persistent cookie in Joomla 3.x
I would like to set a "destination" cookie for all users on my site, to serve tailored content. The cookie needs to persist across login/logout so it appears I cannot use jSession, which is cleared on ...
7
votes
1answer
534 views
How to access an array in $_GET using JInput?
I've been researching different ways to get an array using JInput.
According to http://docs.joomla.org/Retrieving_request_data_using_JInput there are 2 methods that I can use.
Method1
$jinput = ...
6
votes
2answers
4k 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 ...
2
votes
1answer
915 views
use Joomla Subform field values in custom field from same module
I have the basic xml file where in I call subforms into two tabs. Called Tab 1 and Tab 2. The content of this file is below.
mod_something.xml
<fieldset name="tab1">
<field ...
2
votes
2answers
1k views
Get the menu item variable using Jinput
I am using joomla 3.3.6 and have added a menu item type variable.
I want to get the value of this variable using jinput to query the database.
The controller file is external so i added the ...
1
vote
2answers
338 views
UPDATE query to add 1 to multiple columns
I have a website for my football team. I have some statistics and so on in there, for example how many games each player has played and so on.
What I would like, is for me to write in the names of ...