<?php 
class MarketSubCategory extends AppModel{
	var $name='MarketSubCategory';
	var $useTable='market_final_categories';
	
	var $validate = array(
    'title' => array(
        'rule' => array('maxLength', 30),  
        'message' => 'Maximum characters for exceeded!'
    ),
	'image_caption' => array(
        'rule' => array('maxLength', 30),  
        'message' => 'Maximum characters exceeded!'
    ),
	'cat_id' =>array('notempty' => array(
 				'rule' => 'notEmpty',
				'message' => 'Please Select a Category for which the sub-category belongs to.'
 				))
);
	
}



?>