Show
Ignore:
Timestamp:
05/20/08 15:46:39 (8 months ago)
Author:
aarkerio
Message:

New test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/models/gallery.php

    r282 r535  
    66*/ 
    77 
    8  
    9 class Gallery extends AppModel 
    10 { 
     8class Gallery extends AppModel { 
    119    // Its always good practice to include this variable. 
    1210    public $name        = 'Gallery'; 
     
    1715      'user_id' => VALID_NOT_EMPTY 
    1816   ); 
     17/* 
     18public $validate = array( 
     19        'login' => array('alphanumeric' => array( 
     20                                                 'rule' => 'alphaNumeric', 
     21                                             'required' => true, 
     22                                                         'message' => 'Alphabets and numbers only' 
     23                                   ), 
     24                                'between' => array( 
     25                                           'rule' => array('between', 5, 15), 
     26                                                                               'message' => 'Between 5 to 15 characters' 
     27                                           ) 
     28                                ), 
     29                       'password' => array( 
     30                                   'rule' => array('minLength', '8'), 
     31                                                               'message' => 'Mimimum 8 characters long' 
     32                                   ), 
     33                       'email' => 'email', 
     34                       'born' => array( 
     35                               'rule' => 'date', 
     36                               'message' => 'Enter a valid date', 
     37                                                           'allowEmpty' => true 
     38                               ) 
     39                       ); */ 
    1940} 
    2041