Welcome Guest, Not a member yet? Register   Sign In
Form Validation Default
#2

I think best practice is to do form validation in models, not controllers, but the solution to your needs is similar. In the case of using form validation in controllers, you would make a MY_Controller.php file and put it in /application/core/. Search for "CodeIgniter MY_Controller" on the internet, and you're sure to see exactly how it is done. Likewise, you would do something similar for the model, but creating a MY_Model.php.
Reply


Messages In This Thread
Form Validation Default - by edoramedia - 05-22-2016, 12:32 AM
RE: Form Validation Default - by skunkbad - 05-22-2016, 12:40 AM
RE: Form Validation Default - by cartalot - 05-22-2016, 12:06 PM
RE: Form Validation Default - by albertleao - 05-22-2016, 05:23 PM
RE: Form Validation Default - by cartalot - 05-26-2016, 09:49 AM
RE: Form Validation Default - by albertleao - 05-26-2016, 04:29 PM
RE: Form Validation Default - by skunkbad - 05-26-2016, 10:48 AM
RE: Form Validation Default - by mwhitney - 05-26-2016, 02:14 PM
RE: Form Validation Default - by PaulD - 05-26-2016, 09:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB