Questions tagged [jinput]

Joomla! Input Base Class This is an abstracted input class used to manage retrieving data from the application environment

Filter by
Sorted by
Tagged with
26
votes
2answers
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
744 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
335 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/...
8
votes
3answers
5k 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 ...
6
votes
2answers
6k views

File upload using JInput! possible?

i use a html form on one of my articles, i am successful in getting the values from the form using JInput! $input = JFactory::getApplication()->input; But now i need to add a file upload input ...
7
votes
1answer
553 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
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 ...
3
votes
1answer
578 views

How to use HTMLHelper to add to the document head

In this post: How to add CSS/JS/an Image to a module backend @lodder shows me how to use HTMLHelper to add CSS and JavaScript. Previously I had followed the Joomla! documentation https://docs.joomla....
2
votes
3answers
4k views

How to properly get an array from jInput?

Maybe it's weary eyes, but I am unable to retrieve a posted array from jInput: $jinput = JFactory::getApplication()->input; $test1 = $jinput->get('Itemid'); $test2 = $jinput->get("filter"); $...
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 ...
2
votes
1answer
975 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 ...
1
vote
2answers
418 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 ...