<?php 
class PhotoSubCategory extends AppModel{
	var $name='PhotoSubCategory';
	var $useTable='gallery_sub_categories';

				
				var $validate = array(
    'name' => array(
        'rule' => array('maxLength', 30),  
        'message' => 'Maximum characters for exceeded!'
    ),
	'image_caption' => array(
        'rule' => array('maxLength', 30),  
        'message' => 'Maximum characters exceeded!'
    ),
	'description' => array(
        'rule' => array('maxLength', 150),  
        'message' => 'Maximum characters exceeded!'
    ),
	'cat_id' =>array('notempty' => array(
 				'rule' => 'notEmpty',
				'message' => 'Please Select a Category for which the sub-category belongs to.'
 				))
);
	
	
}



?>