| 39 | | |
| | 39 | /* |
| | 40 | public $validate = array( |
| | 41 | 'login' => array('alphanumeric' => array( |
| | 42 | 'rule' => 'alphaNumeric', |
| | 43 | 'required' => true, |
| | 44 | 'message' => 'Alphabets and numbers only' |
| | 45 | ), |
| | 46 | 'between' => array( |
| | 47 | 'rule' => array('between', 5, 15), |
| | 48 | 'message' => 'Between 5 to 15 characters' |
| | 49 | ) |
| | 50 | ), |
| | 51 | 'password' => array( |
| | 52 | 'rule' => array('minLength', '8'), |
| | 53 | 'message' => 'Mimimum 8 characters long' |
| | 54 | ), |
| | 55 | 'email' => 'email', |
| | 56 | 'born' => array( |
| | 57 | 'rule' => 'date', |
| | 58 | 'message' => 'Enter a valid date', |
| | 59 | 'allowEmpty' => true |
| | 60 | ) |
| | 61 | ); */ |