Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public $validate = array(
- 'employee_id' => array(
- 'required' => array(
- 'rule' => array('notBlank'),
- 'required' => true,
- 'allowEmpty' => false,
- 'message' => 'Employee ID must be specified!'
- ),
- ),
- 'email' => array(
- 'valid_email' => array(
- 'rule' => 'email',
- 'message' => 'Enter a valid email address',
- 'allowEmpty' => true,
- 'required' => false
- )
- ),
- 'address_line_1' => array(
- 'required' => array(
- 'rule' => array('notBlank'),
- 'required' => true,
- 'allowEmpty' => false,
- 'message' => 'Please enter an address'
- ),
- ),
- 'country_id' => array(
- 'required' => array(
- 'rule' => array('notBlank'),
- 'required' => true,
- 'allowEmpty' => false,
- 'message' => 'Please select country'
- ),
- )
- );
Add Comment
Please, Sign In to add comment