I have a few methods that return true or false if the value passed to them meets certain requirements.
These validations will be called from several different controllers, and possibly different models as well.
I would like to do this without plugging them into an object and running validation on the object. Is this possible?
Do I group all of these "validating methods" into a class? If so, where does that class go"
Aucun commentaire:
Enregistrer un commentaire