Skip to main content

Timeline for JInput->get() , how does it work?

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Aug 27, 2014 at 7:42 comment added Farahmand Yes, my comment is about a general PHP rule to avoid PHP warnings and not a Joomla one. I wanted to say that $myVar = $app->input->get('foo',0,'int'); is equivalent to $myVar = isset($_REQUEST['foo'] ? (int) $_REQUEST['foo'] : 0;.
Aug 27, 2014 at 7:31 comment added Valentin Despa What warning? The code with request is just an example, not something to use.
Aug 27, 2014 at 7:27 comment added Farahmand To avoid any warning, it's better to check if $_REQUEST['foo'] is set: $myVar = isset($_REQUEST['foo'] ? (int) $_REQUEST['foo'] : 0;
May 22, 2014 at 16:53 vote accept Saman Mohamadi
May 21, 2014 at 14:15 history answered Valentin Despa CC BY-SA 3.0