Welcome Guest, Not a member yet? Register   Sign In
Sanitizing Form inputs form quotes (' and ")
#3

(12-30-2014, 05:05 AM)sujit510 Wrote: Finally, I went to "system\helpers\form_helper.php" and changed the function form_input

I want to know if this is correct way to achieve what I want.

Hi Sujit, aside from MWhitney's good advice, there's a much better way of doing what you did.

If you change something in the system folder, the problem is this -- next time you upgrade, you will have to make those changes again. And what if you forget?

Instead of changing a class, function, or helper in the system folder, you can "extend" them by creating their replacements in your application folder. That way, upgrading CodeIgniter won't break your application. The Codeigniter Documentation shows how to do that. Click the link and scroll down to "Extending" Helpers. It's very easy to do. Good luck! Smile
Reply


Messages In This Thread
RE: Sanitizing Form inputs form quotes (' and ") - by RobertSF - 12-30-2014, 03:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB