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

(This post was last modified: 05-22-2016, 03:39 PM by cartalot.)

Suggest that you put your validation methods in a model. Then any controller can call the validation method. Also you can make a separate validation methods and call more then one validation method. So you have your basic validation method, and then call your second validation method when needed. And if you are interacting with different database tables then consider putting them in different models. And if you need to call these all the time from different controllers you can autoload the models in application/autoload .
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