| | 28 | /* |
| | 29 | public $validate = array( |
| | 30 | 'login' => array('alphanumeric' => array( |
| | 31 | 'rule' => 'alphaNumeric', |
| | 32 | 'required' => true, |
| | 33 | 'message' => 'Alphabets and numbers only' |
| | 34 | ), |
| | 35 | 'between' => array( |
| | 36 | 'rule' => array('between', 5, 15), |
| | 37 | 'message' => 'Between 5 to 15 characters' |
| | 38 | ) |
| | 39 | ), |
| | 40 | 'password' => array( |
| | 41 | 'rule' => array('minLength', '8'), |
| | 42 | 'message' => 'Mimimum 8 characters long' |
| | 43 | ), |
| | 44 | 'email' => 'email', |
| | 45 | 'born' => array( |
| | 46 | 'rule' => 'date', |
| | 47 | 'message' => 'Enter a valid date', |
| | 48 | 'allowEmpty' => true |
| | 49 | ) |
| | 50 | ); */ |