Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

validator

Used to declare a field validator

 

Info
  1. validator FirstnameValidator 
  2. {
  3.     minlen(2); maxlen(250);
  4. }
  5. validator AgeValidator 
  6. {
  7.     minval(0);
  8. }