Today, I've worked on various things but the major part of the afternoon has been taken up with writing server-side validation for our new User Registration.
I decided that it might be nice to have a generic validation function (encapsulated in a CFC) which could be called wherever validation is needed. This lets us have global control over the error statements and makes sure we do it the same way every time (particularly useful in the case of email address validation).
Now, the code below is part of our system, so there's a bit of our Framework in there, but the overall concept should be fairly easy to deduce.
No comments:
Post a Comment