• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
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
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.