Guest User

Untitled

a guest
May 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. public $validate = array(
  2. 'employee_id' => array(
  3. 'required' => array(
  4. 'rule' => array('notBlank'),
  5. 'required' => true,
  6. 'allowEmpty' => false,
  7. 'message' => 'Employee ID must be specified!'
  8. ),
  9. ),
  10. 'email' => array(
  11. 'valid_email' => array(
  12. 'rule' => 'email',
  13. 'message' => 'Enter a valid email address',
  14. 'allowEmpty' => true,
  15. 'required' => false
  16. )
  17. ),
  18. 'address_line_1' => array(
  19. 'required' => array(
  20. 'rule' => array('notBlank'),
  21. 'required' => true,
  22. 'allowEmpty' => false,
  23. 'message' => 'Please enter an address'
  24. ),
  25. ),
  26. 'country_id' => array(
  27. 'required' => array(
  28. 'rule' => array('notBlank'),
  29. 'required' => true,
  30. 'allowEmpty' => false,
  31. 'message' => 'Please select country'
  32. ),
  33. )
  34. );
Add Comment
Please, Sign In to add comment