source: Dev/branches/cakephp/app/models/user.php @ 126

Last change on this file since 126 was 126, checked in by fpvanagthoven, 14 years ago

Cakephp branch.

File size: 702 bytes
Line 
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 */
13class 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.