CodeIgniter Forums
Best practice old vs set_value - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Best practice old vs set_value (/showthread.php?tid=83433)



Best practice old vs set_value - frocco - 09-26-2022

Hello,

does it make any difference on using old instead of set_value?

thanks


RE: Best practice old vs set_value - kenjis - 09-26-2022

Quote:If you are using the form helper, this feature is built-in. You only need to use this function when not using the form helper.
https://codeigniter4.github.io/CodeIgniter4/general/common_functions.html#old



RE: Best practice old vs set_value - frocco - 09-27-2022

I'm just using plain html, and the docs show old and set_value.
I don't know the difference between these too and was wondering what the best practice (most developers) use.