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/lesson.php

    r352 r535  
    3030      'user_id' => VALID_NOT_EMPTY 
    3131   ); 
     32/* 
     33public $validate = array( 
     34        'login' => array('alphanumeric' => array( 
     35                                                 'rule' => 'alphaNumeric', 
     36                                             'required' => true, 
     37                                                         'message' => 'Alphabets and numbers only' 
     38                                   ), 
     39                                'between' => array( 
     40                                           'rule' => array('between', 5, 15), 
     41                                                                               'message' => 'Between 5 to 15 characters' 
     42                                           ) 
     43                                ), 
     44                       'password' => array( 
     45                                   'rule' => array('minLength', '8'), 
     46                                                               'message' => 'Mimimum 8 characters long' 
     47                                   ), 
     48                       'email' => 'email', 
     49                       'born' => array( 
     50                               'rule' => 'date', 
     51                               'message' => 'Enter a valid date', 
     52                                                           'allowEmpty' => true 
     53                               ) 
     54                       ); */ 
    3255} 
    33  
    3456?>