Rev | Line | |
---|
[126] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * To change this template, choose Tools | Templates |
---|
| 5 | * and open the template in the editor. |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | /** |
---|
| 9 | * Description of user |
---|
| 10 | * |
---|
| 11 | * @author fpvanagthoven |
---|
| 12 | */ |
---|
| 13 | class User extends AppModel { |
---|
| 14 | |
---|
| 15 | var $name = 'User'; |
---|
| 16 | var $validate = array( |
---|
| 17 | 'username' => array( |
---|
| 18 | 'The username must be between 3 and 13 characters.' => array( |
---|
| 19 | 'rule' => array('between', 3, 13), |
---|
| 20 | 'message' => 'The username must be between 3 and 13 characters.' |
---|
| 21 | ), |
---|
| 22 | 'That username has already been taken' => array( |
---|
| 23 | 'rule' => 'isUnique', |
---|
| 24 | 'message' => 'That username has already been taken.' |
---|
| 25 | )) |
---|
| 26 | |
---|
| 27 | ); |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.