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

    r449 r535  
    77*/  
    88 
    9 class Forum extends AppModel 
    10 { 
     9class Forum extends AppModel { 
    1110 
    1211public $hasMany = array('Topic' =>  
     
    3433      'catforum_id' => VALID_NOT_EMPTY 
    3534      ); 
    36  
     35/* 
     36public $validate = array( 
     37        'login' => array('alphanumeric' => array( 
     38                                                 'rule' => 'alphaNumeric', 
     39                                             'required' => true, 
     40                                                         'message' => 'Alphabets and numbers only' 
     41                                   ), 
     42                                'between' => array( 
     43                                           'rule' => array('between', 5, 15), 
     44                                                                               'message' => 'Between 5 to 15 characters' 
     45                                           ) 
     46                                ), 
     47                       'password' => array( 
     48                                   'rule' => array('minLength', '8'), 
     49                                                               'message' => 'Mimimum 8 characters long' 
     50                                   ), 
     51                       'email' => 'email', 
     52                       'born' => array( 
     53                               'rule' => 'date', 
     54                               'message' => 'Enter a valid date', 
     55                                                           'allowEmpty' => true 
     56                               ) 
     57                       ); */ 
    3758 public function getVclassrooms($user_id) 
    3859 {