Welcome Guest, Not a member yet? Register   Sign In
update input->post or input->get methods
#1

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,
ressan.ir
CI is nice Heart
Reply
#2

(This post was last modified: 04-13-2015, 08:07 AM by sv3tli0.)

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..
Best VPS Hosting : Digital Ocean
Reply
#3

(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.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB