CodeIgniter Forums

Full Version: update input->post or input->get methods
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, in joomla framework, one of my favorite functions are jinput->get methods, this series of methods used for getting variables from post or get or ... , not just that , you can tell what kind of variable you want of how it must filter input,
here is documentation of that :
https://docs.joomla.org/Retrieving_reque...ing_JInput

i wish in next version of CI, we have this functions also, think, you can define TYPE and DEFAULT value of expected input variable instead of checking null and then converting,
Adding different Filters and Validators directly inside the input class will be good. As often you have to filter some input data.

How ever the other things already are available in CI Input you have get, post, post_get, server..
Its not much to be changed in this direction..
(04-13-2015, 06:57 AM)nasser.man Wrote: [ -> ]i wish in next version of CI, we have this functions also, think, you can define TYPE and DEFAULT value of expected input variable instead of checking null and then converting,

Yes, if we could specify the data type and a default value it would be awesome.