CodeIgniter Forums
update input->post or input->get methods - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: update input->post or input->get methods (/showthread.php?tid=61404)



update input->post or input->get methods - nasser.man - 04-13-2015

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_request_data_using_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,


RE: update input->post or input->get methods - sv3tli0 - 04-13-2015

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..


RE: update input->post or input->get methods - includebeer - 04-13-2015

(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.