<?php 
class ConfworkCategory extends AppModel{
	var $name='ConfworkCategory';
	var $useTable='Confwork_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!'
    ),
	'summary' => array(
        'rule' => array('maxLength', 150),  
        'message' => 'Maximum characters exceeded!'
    ),
	'main_cat_id' =>array('notempty' => array(
 				'rule' => 'notEmpty',
				'message' => 'Please Select a Main-category for which the category belongs to.'
 				))
);
	
	
}



?>