| 20 | | |
| | 20 | /* |
| | 21 | public $validate = array( |
| | 22 | 'login' => array('alphanumeric' => array( |
| | 23 | 'rule' => 'alphaNumeric', |
| | 24 | 'required' => true, |
| | 25 | 'message' => 'Alphabets and numbers only' |
| | 26 | ), |
| | 27 | 'between' => array( |
| | 28 | 'rule' => array('between', 5, 15), |
| | 29 | 'message' => 'Between 5 to 15 characters' |
| | 30 | ) |
| | 31 | ), |
| | 32 | 'password' => array( |
| | 33 | 'rule' => array('minLength', '8'), |
| | 34 | 'message' => 'Mimimum 8 characters long' |
| | 35 | ), |
| | 36 | 'email' => 'email', |
| | 37 | 'born' => array( |
| | 38 | 'rule' => 'date', |
| | 39 | 'message' => 'Enter a valid date', |
| | 40 | 'allowEmpty' => true |
| | 41 | ) |
| | 42 | ); */ |